Skip to content

Commit

Permalink
Add lock setConfiguration util cmd (#791)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Hjelmare <[email protected]>
  • Loading branch information
raman325 and MartinHjelmare authored Oct 25, 2023
1 parent b21e547 commit 3ad2be4
Show file tree
Hide file tree
Showing 5 changed files with 3,134 additions and 3 deletions.
14 changes: 14 additions & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ def energy_production_state_fixture():
return json.loads(load_fixture("energy_production_state.json"))


@pytest.fixture(name="lock_ultraloq_ubolt_pro_state", scope="session")
def lock_ultraloq_ubolt_pro_state_fixture():
"""Load the ultraloq U-Bolt Pro lock state fixture data."""
return json.loads(load_fixture("lock_ultraloq_ubolt_pro_state.json"))


@pytest.fixture(name="client_session")
def client_session_fixture(ws_client):
"""Mock an aiohttp client session."""
Expand Down Expand Up @@ -460,3 +466,11 @@ def energy_prodution_fixture(driver, energy_production_state):
node = Node(driver.client, deepcopy(energy_production_state))
driver.controller.nodes[node.node_id] = node
return node


@pytest.fixture(name="lock_ultraloq_ubolt_pro")
def lock_ultraloq_ubolt_pro_fixture(driver, lock_ultraloq_ubolt_pro_state):
"""Mock an Ultraloq U-Bolt Pro lock node."""
node = Node(driver.client, deepcopy(lock_ultraloq_ubolt_pro_state))
driver.controller.nodes[node.node_id] = node
return node
Loading

0 comments on commit 3ad2be4

Please sign in to comment.