Skip to content
Snippets Groups Projects
Unverified Commit e13a34df authored by G Johansson's avatar G Johansson Committed by GitHub
Browse files

Separate fixture in Sensibo (#109000)

parent b54e2828
No related branches found
No related tags found
No related merge requests found
......@@ -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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment