Ensure Enphase Envoy test fixtures aren't session-scoped (#80499)

* Ensure Enphase Envoy test fixtures aren't session-scoped

* Code review
This commit is contained in:
Aaron Bach 2022-10-18 10:24:49 -06:00 committed by GitHub
parent 1700da0ed3
commit 414d478d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"))