Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
testuser7 authored Sep 30, 2023
1 parent 6877913 commit dabc2a5
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pywizlight/scenes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
SCENE_NAME_TO_ID = {scene_name: scene_id for (scene_id, scene_name) in SCENES.items()}
TW_SCENES = [6, 9, 10, 11, 12, 13, 14, 15, 16, 18, 29, 30, 31, 32, 33, 35]
DW_SCENES = [9, 10, 13, 14, 29, 31, 32, 35]
DW_SCENES = [9, 10, 11, 14, 29, 31, 32, 35]

SCENES_BY_CLASS: Dict[BulbClass, List[str]] = {
BulbClass.RGB: list(cast(Iterable, SCENES.values())),
Expand Down
6 changes: 3 additions & 3 deletions pywizlight/tests/test_bulb_dimmable_white.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ async def test_model_description_dimmable_bulb(dimmable_bulb: wizlight) -> None:
async def test_supported_scenes(dimmable_bulb: wizlight) -> None:
"""Test supported scenes."""
assert await dimmable_bulb.getSupportedScenes() == [
"Wake up",
"Wake-up",
"Bedtime",
"Cool white",
"Warm white",
"Night light",
"Candlelight",
"Golden white",
"Pulse",
"Steampunk",
"Alarm",
]
12 changes: 7 additions & 5 deletions pywizlight/tests/test_bulb_light_strip_1_25_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ async def test_supported_scenes(light_strip: wizlight) -> None:
"Fireplace",
"Cozy",
"Forest",
"Pastel Colors",
"Wake up",
"Pastel colors",
"Wake-up",
"Bedtime",
"Warm White",
"Warm white",
"Daylight",
"Cool white",
"Night light",
"Focus",
"Relax",
"True colors",
"TV time",
"Plantgrowth",
"Plant growth",
"Spring",
"Summer",
"Fall",
"Deepdive",
"Deep dive",
"Jungle",
"Mojito",
"Club",
Expand All @@ -63,6 +63,8 @@ async def test_supported_scenes(light_strip: wizlight) -> None:
"Golden white",
"Pulse",
"Steampunk",
"Diwali",
"Alarm",
"Rhythm",
]

Expand Down
12 changes: 7 additions & 5 deletions pywizlight/tests/test_bulb_rgbw_1_21_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,22 @@ async def test_supported_scenes(rgbw_bulb: wizlight) -> None:
"Fireplace",
"Cozy",
"Forest",
"Pastel Colors",
"Wake up",
"Pastel colors",
"Wake-up",
"Bedtime",
"Warm White",
"Warm white",
"Daylight",
"Cool white",
"Night light",
"Focus",
"Relax",
"True colors",
"TV time",
"Plantgrowth",
"Plant growth",
"Spring",
"Summer",
"Fall",
"Deepdive",
"Deep dive",
"Jungle",
"Mojito",
"Club",
Expand All @@ -72,5 +72,7 @@ async def test_supported_scenes(rgbw_bulb: wizlight) -> None:
"Golden white",
"Pulse",
"Steampunk",
"Diwali",
"Alarm",
"Rhythm",
]
6 changes: 4 additions & 2 deletions pywizlight/tests/test_bulb_turnable_white.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ async def test_supported_scenes(turnable_bulb: wizlight) -> None:
"""Test supported scenes."""
assert await turnable_bulb.getSupportedScenes() == [
"Cozy",
"Wake up",
"Wake-up",
"Bedtime",
"Warm White",
"Warm white",
"Daylight",
"Cool white",
"Night light",
Expand All @@ -54,4 +54,6 @@ async def test_supported_scenes(turnable_bulb: wizlight) -> None:
"Golden white",
"Pulse",
"Steampunk",
"Diwali",
"Alarm",
]

0 comments on commit dabc2a5

Please sign in to comment.