Appdaemon-Test-Framework icon indicating copy to clipboard operation
Appdaemon-Test-Framework copied to clipboard

Clean, human-readable tests for Appdaemon

Results 12 Appdaemon-Test-Framework issues
Sort by recently updated
recently updated
newest added

This PR introduces namespaces to the mocked states. It helps to test applications that use [User Definied Namespaces](https://appdaemon.readthedocs.io/en/latest/APPGUIDE.html?highlight=user%20definied%20namespace#user-defined-namespaces) as persistent storage. An example: ```python given_that.state_of("light.kitchen", namespace="storage").is_set_to( 'on', attributes={"last_used_preset": "dark"} )...

In version `5.4.*` of pytest, an error is thrown when capturing the logging ``` TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk. See https://docs.pytest.org/en/latest/deprecations.html#terminalreporter-writer for more information....