Skip to content

Commit

Permalink
fix missing coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mib1185 committed Apr 1, 2024
1 parent cae3fdc commit ed6ba6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_fritzhome.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ def test_logout(self):

def test_not_logged_in_error(self):
self.fritz._sid = None
with pytest.raises(NotLoggedInError):
with pytest.raises(NotLoggedInError) as ex:
self.fritz.update_devices()
assert str(ex.value) == "not logged in, login before doing any requests."

def test_aha_request(self):
self.fritz._aha_request(cmd="testcmd")
Expand Down

0 comments on commit ed6ba6e

Please sign in to comment.