Jelajahi Sumber

tests (lock): don't include the admin flag in the unlock request

Adapt tests to last change

Discussion #4013
Jason Rumney 2 bulan lalu
induk
melakukan
f03038b9cc
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 6 6
      tests/devices/test_ailrinni_fplock.py

+ 6 - 6
tests/devices/test_ailrinni_fplock.py

@@ -51,9 +51,9 @@ class TestAilrinniFingerprintLock(TuyaDeviceTestCase):
 
     async def test_lock(self):
         """Test locking the lock."""
-        expected = b64encode(
-            b"\x00" + b"\x00\x01" + b"12345678" + b"\x00\x00\x00"
-        ).decode("utf-8")
+        expected = b64encode(b"\x00" + b"\x00\x01" + b"12345678" + b"\x00\x00").decode(
+            "utf-8"
+        )
         async with assert_device_properties_set(
             self.subject._device,
             {CODE_UNLOCK_DP: expected},
@@ -62,9 +62,9 @@ class TestAilrinniFingerprintLock(TuyaDeviceTestCase):
 
     async def test_unlock(self):
         """Test unlocking the lock."""
-        expected = b64encode(
-            b"\x01" + b"\x00\x01" + b"12345678" + b"\x00\x00\x00"
-        ).decode("utf-8")
+        expected = b64encode(b"\x01" + b"\x00\x01" + b"12345678" + b"\x00\x00").decode(
+            "utf-8"
+        )
         async with assert_device_properties_set(
             self.subject._device,
             {CODE_UNLOCK_DP: expected},