From 414d478d3e462da211b33a0c81f846c509b222a3 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Tue, 18 Oct 2022 10:24:49 -0600 Subject: [PATCH] Ensure Enphase Envoy test fixtures aren't session-scoped (#80499) * Ensure Enphase Envoy test fixtures aren't session-scoped * Code review --- tests/components/enphase_envoy/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/enphase_envoy/conftest.py b/tests/components/enphase_envoy/conftest.py index cb01e8a81e4..93a76bdd510 100644 --- a/tests/components/enphase_envoy/conftest.py +++ b/tests/components/enphase_envoy/conftest.py @@ -36,13 +36,13 @@ def config_fixture(): } -@pytest.fixture(name="gateway_data", scope="session") +@pytest.fixture(name="gateway_data", scope="package") def gateway_data_fixture(): """Define a fixture to return gateway data.""" return json.loads(load_fixture("data.json", "enphase_envoy")) -@pytest.fixture(name="inverters_production_data", scope="session") +@pytest.fixture(name="inverters_production_data", scope="package") def inverters_production_data_fixture(): """Define a fixture to return inverter production data.""" return json.loads(load_fixture("inverters_production.json", "enphase_envoy"))