From 3974a1fb9466fbcb86d1fb3990917fcc1d341081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B6rrle?= Date: Fri, 24 Nov 2023 12:06:26 +0100 Subject: [PATCH] add common test --- tests/conftest.py | 3 +-- tests/test_common.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 9281bd7..00fcc07 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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 @@ -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 diff --git a/tests/test_common.py b/tests/test_common.py index 4d9f7b3..d98d8d3 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -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"