Procházet zdrojové kódy

tests: fix infrared expected data after proper json formatting

Jason Rumney před 1 měsícem
rodič
revize
2c91850e24
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      tests/test_infrared.py

+ 3 - 3
tests/test_infrared.py

@@ -122,11 +122,11 @@ async def test_async_send_command(mocker):
     async with assert_device_properties_set(
         device,
         {
-            "201": (
-                "{'control': 'send_ir', 'type': 0, 'head': '', 'key1': '1KCOUETICMgIyAjI"
+            "201"(
+                '"control": "send_ir", "type": 0, "head": "", "key1": "1KCOUETICMgIyAjI'
                 "CMgKXBjICMgIyAjICMgIyAjICMgIyApcGMgIyAjIClwYyAjICMgIyAjIClwYyAjICMgKXBj"
                 "ICMgIyAjICMgKXBjICMgIyAjICMgKXBjIClwYyAjICMgIyAjIClwYyAjICMgKXBjIClwYyA"
-                "jICMgIyAjIClwYyApcGMgIAAA=='}"
+                'jICMgIyAjIClwYyApcGMgIAAA=="}'
             )
         },
     ):