Przeglądaj źródła

Revert "Fix device tests after addition of protocol version 3.2"

This reverts commit c124f4d72ee5e95851da266232780b95ae9e1f92.
Jason Rumney 3 lat temu
rodzic
commit
0d3d757496
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      tests/test_device.py

+ 2 - 4
tests/test_device.py

@@ -164,13 +164,11 @@ class TestDevice(IsolatedAsyncioTestCase):
             Exception("Error"),
             Exception("Error"),
             Exception("Error"),
-            Exception("Error"),
-            Exception("Error"),
         ]
         self.subject.refresh()
 
         self.subject._api.set_version.assert_has_calls(
-            [call(3.1), call(3.2), call(3.3), call(3.1)]
+            [call(3.1), call(3.3), call(3.1)]
         )
 
     def test_api_protocol_version_is_stable_once_successful(self):
@@ -190,7 +188,7 @@ class TestDevice(IsolatedAsyncioTestCase):
         self.subject.refresh()
         self.subject.refresh()
 
-        self.subject._api.set_version.assert_has_calls([call(3.1), call(3.2)])
+        self.subject._api.set_version.assert_has_calls([call(3.1), call(3.3)])
 
     def test_reset_cached_state_clears_cached_state_and_pending_updates(self):
         self.subject._cached_state = {"1": True, "updated_at": time()}