mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Separate fixture in Sensibo (#109000)
This commit is contained in:
parent
b54e282801
commit
e13a34df0f
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user