mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Separate fixture in Sensibo (#109000)
This commit is contained in:
@@ -63,9 +63,13 @@ async def get_data_from_library(
|
||||
|
||||
|
||||
@pytest.fixture(name="load_json")
|
||||
def load_json_from_fixture() -> SensiboData:
|
||||
def load_json_from_fixture(load_data: str) -> SensiboData:
|
||||
"""Load fixture with json data and return."""
|
||||
|
||||
data_fixture = load_fixture("data.json", "sensibo")
|
||||
json_data: dict[str, Any] = json.loads(data_fixture)
|
||||
json_data: dict[str, Any] = json.loads(load_data)
|
||||
return json_data
|
||||
|
||||
|
||||
@pytest.fixture(name="load_data", scope="session")
|
||||
def load_data_from_fixture() -> str:
|
||||
"""Load fixture with fixture data and return."""
|
||||
return load_fixture("data.json", "sensibo")
|
||||
|
Reference in New Issue
Block a user