Skip to content

Commit

Permalink
test: fix capabilities removal
Browse files Browse the repository at this point in the history
  • Loading branch information
rokam committed Jul 11, 2024
1 parent 45a3c77 commit 69224b5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/device_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ def test_connect(self) -> None:
patch.object(
self.device,
"authenticate",
side_effect=[AuthException(), None, None, None],
side_effect=[AuthException(), None, None],
),
patch.object(
self.device,
"refresh_status",
side_effect=[RefreshFailed(), None, None],
side_effect=[RefreshFailed(), None],
),
patch.object(
self.device,
"get_capabilities",
side_effect=[None, None],
side_effect=[None],
),
):
connect_mock.side_effect = [
Expand All @@ -99,9 +99,6 @@ def test_connect(self) -> None:
assert self.device.connect(True, True) is False
assert self.device.available is False

assert self.device.connect(True, True) is False
assert self.device.available is False

assert self.device.connect(True, True) is True
assert self.device.available is True

Expand Down

0 comments on commit 69224b5

Please sign in to comment.