فهرست منبع

tests(light): reset switch value in loop

Because there are multiple test runs, the switch gets left off
on second loop iteration
Jason Rumney 1 روز پیش
والد
کامیت
2b844ee217
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      tests/test_light.py

+ 1 - 0
tests/test_light.py

@@ -395,6 +395,7 @@ async def test_rgbhsv_invalid_colour_does_not_break_state_or_turn_on(
 
     assert light.hs_color == (0.0, 100.0)
     for invalid_value in invalid_values:
+        dps["1"] = True
         dps["2"] = invalid_value
         assert light.hs_color is None
         assert light.is_on is True