Parcourir la source

Tests: protocol rotation needs an extra 3.3 attempt for "3.22"

Tests need updating to match new behaviour
Jason Rumney il y a 1 an
Parent
commit
f7f8932fd6
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9 1
      tests/test_device.py

+ 9 - 1
tests/test_device.py

@@ -150,7 +150,15 @@ class TestDevice(IsolatedAsyncioTestCase):
         await self.subject.async_refresh()
 
         self.mock_api().set_version.assert_has_calls(
-            [call(3.1), call(3.2), call(3.4), call(3.5), call(3.3), call(3.1)]
+            [
+                call(3.1),
+                call(3.2),
+                call(3.4),
+                call(3.5),
+                call(3.3),
+                call(3.3),
+                call(3.1),
+            ]
         )
 
     async def test_api_protocol_version_is_stable_once_successful(self):