Skip to content

Commit

Permalink
fixing test lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocaldas committed Jan 4, 2025
1 parent 37f9cb9 commit ebcf135
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/test_refrigerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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"}),
],
Expand Down

0 comments on commit ebcf135

Please sign in to comment.