Skip to content

Commit

Permalink
Use enable_custom_integrations fixture by default (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFlamm authored May 31, 2021
1 parent a11ab70 commit cb91d2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pytest-homeassistant-custom-component==0.3.0
pytest-homeassistant-custom-component==0.4.0
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
pytest_plugins = "pytest_homeassistant_custom_component"


# This fixture enables loading custom integrations in all tests.
# Remove to enable selective use of this fixture
@pytest.fixture(autouse=True)
def auto_enable_custom_integrations(enable_custom_integrations):
yield


# This fixture is used to prevent HomeAssistant from attempting to create and dismiss persistent
# notifications. These calls would fail without this fixture since the persistent_notification
# integration is never loaded during a test.
Expand Down

0 comments on commit cb91d2f

Please sign in to comment.