Skip to content

Commit

Permalink
forgot a file
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-th committed Jun 8, 2024
1 parent 373af86 commit d65bb18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/actions/test_group_actions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from homematicip.action.group_actions import group_action_set_switch_state
from homematicip.action.group_actions import action_set_switch_state_group
from homematicip.connection.rest_connection import RestConnection, RestResult
from homematicip.model.model_components import Group
from homematicip.runner import Runner
Expand All @@ -23,12 +23,12 @@ def sample_group() -> Group:
async def test_wrong_group_type(runner, sample_group):
sample_group.type = "ASDF"
with pytest.raises(ValueError):
await group_action_set_switch_state(runner.rest_connection, sample_group, True)
await action_set_switch_state_group(runner.rest_connection, sample_group, True)

@pytest.mark.asyncio
async def test_group_set_switch_state(runner, sample_group):
sample_group.type = "SWITCHING"
await group_action_set_switch_state(runner.rest_connection, sample_group, True)
await action_set_switch_state_group(runner.rest_connection, sample_group, True)
runner.rest_connection.async_post.assert_called_once_with("group/switching/setState",
{"groupId": sample_group.id, "on": True})

Expand Down

0 comments on commit d65bb18

Please sign in to comment.