Skip to content

Commit

Permalink
add common test
Browse files Browse the repository at this point in the history
  • Loading branch information
CM000n committed Nov 24, 2023
1 parent 2894a43 commit 3974a1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
from homeassistant import loader
from homeassistant.core import HomeAssistant
from homeassistant.helpers.area_registry import AreaRegistry
from homeassistant.helpers.device_registry import DeviceRegistry
Expand All @@ -19,7 +18,7 @@ def auto_enable_custom_integrations(enable_custom_integrations: bool) -> None:
@pytest.fixture
def enable_custom_integrations(hass: HomeAssistant) -> None:
"""Enable custom integrations defined in the test dir."""
hass.data.pop(loader.DATA_CUSTOM_COMPONENTS)
# hass.data.pop(loader.DATA_CUSTOM_COMPONENTS)


@pytest.fixture
Expand Down
4 changes: 2 additions & 2 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@


def test_load_fixture():
data = json.loads(load_fixture("test_data.json"))
assert data == {"test_key": "test_value"}
data = json.loads(load_fixture("gather_all_information.json"))
assert data[0]["vin"] == "JTXXXXXXXXXXXXXXX"

0 comments on commit 3974a1f

Please sign in to comment.