diff --git a/tests/test_refrigerator.py b/tests/test_refrigerator.py index 27f3d65..297e6d8 100644 --- a/tests/test_refrigerator.py +++ b/tests/test_refrigerator.py @@ -35,7 +35,7 @@ async def test_attributes( await refrigerator.connect() assert refrigerator.get_online() is False - assert refrigerator.get_current_temp(True) == '0' + assert refrigerator.get_current_temp(True) == "0" assert refrigerator.get_turbo_mode() is False assert refrigerator.get_display_lock() is False await refrigerator.disconnect() @@ -48,20 +48,20 @@ async def test_attributes( assert refrigerator.get_online() is True assert refrigerator.get_turbo_mode() is True assert refrigerator.get_display_lock() is True - assert refrigerator.get_current_temp(True) == '5' + assert refrigerator.get_current_temp(True) == "5" await refrigerator.disconnect() @pytest.mark.parametrize( ["method", "argument", "expected_json"], [ - (Refrigerator.set_temp, -4, {'Refrigerator_OpSetTempPreset': '12'}), - (Refrigerator.set_temp, -2, {'Refrigerator_OpSetTempPreset': '11'}), - (Refrigerator.set_temp, 0, {'Refrigerator_OpSetTempPreset': '10'}), - (Refrigerator.set_temp, 3, {'Refrigerator_OpSetTempPreset': '9'}), - (Refrigerator.set_temp, 5, {'Refrigerator_OpSetTempPreset': '8'}), - (Refrigerator.set_turbo_mode, True, {'Sys_OpSetMaxCool': '1'}), - (Refrigerator.set_turbo_mode, False, {'Sys_OpSetMaxCool': '0'}), + (Refrigerator.set_temp, -4, {"Refrigerator_OpSetTempPreset": "12"}), + (Refrigerator.set_temp, -2, {"Refrigerator_OpSetTempPreset": "11"}), + (Refrigerator.set_temp, 0, {"Refrigerator_OpSetTempPreset": "10"}), + (Refrigerator.set_temp, 3, {"Refrigerator_OpSetTempPreset": "9"}), + (Refrigerator.set_temp, 5, {"Refrigerator_OpSetTempPreset": "8"}), + (Refrigerator.set_turbo_mode, True, {"Sys_OpSetMaxCool": "1"}), + (Refrigerator.set_turbo_mode, False, {"Sys_OpSetMaxCool": "0"}), (Refrigerator.set_display_lock, True, {"Sys_OpSetControlLock": "1"}), (Refrigerator.set_display_lock, False, {"Sys_OpSetControlLock": "0"}), ],