Fix broken test and missing try/except

This commit is contained in:
Kevin Fronczak
2020-07-20 01:18:41 +00:00
parent fcdb70d246
commit 48028914de
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ class TestAuth(unittest.TestCase):
@mock.patch("blinkpy.auth.Auth.refresh_token")
def test_query_retry_failed(self, mock_refresh, mock_validate):
"""Check handling of failed retry request."""
self.auth.seession = MockSession()
self.auth.session = MockSession()
mock_validate.side_effect = [UnauthorizedError, BlinkBadResponse]
mock_refresh.return_value = True
self.assertEqual(self.auth.query(url="http://example.com"), None)