From dabc2a5f34ad2cd3cc10fdaec72bd6dfaf444c6f Mon Sep 17 00:00:00 2001 From: testuser7 Date: Sat, 30 Sep 2023 16:17:28 +0200 Subject: [PATCH] Update tests --- pywizlight/scenes.py | 2 +- pywizlight/tests/test_bulb_dimmable_white.py | 6 +++--- pywizlight/tests/test_bulb_light_strip_1_25_0.py | 12 +++++++----- pywizlight/tests/test_bulb_rgbw_1_21_4.py | 12 +++++++----- pywizlight/tests/test_bulb_turnable_white.py | 6 ++++-- 5 files changed, 22 insertions(+), 16 deletions(-) diff --git a/pywizlight/scenes.py b/pywizlight/scenes.py index 8a66d36..0a507d5 100755 --- a/pywizlight/scenes.py +++ b/pywizlight/scenes.py @@ -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())), diff --git a/pywizlight/tests/test_bulb_dimmable_white.py b/pywizlight/tests/test_bulb_dimmable_white.py index 891293f..e196f09 100644 --- a/pywizlight/tests/test_bulb_dimmable_white.py +++ b/pywizlight/tests/test_bulb_dimmable_white.py @@ -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", ] diff --git a/pywizlight/tests/test_bulb_light_strip_1_25_0.py b/pywizlight/tests/test_bulb_light_strip_1_25_0.py index 61efd91..a519d68 100644 --- a/pywizlight/tests/test_bulb_light_strip_1_25_0.py +++ b/pywizlight/tests/test_bulb_light_strip_1_25_0.py @@ -38,10 +38,10 @@ 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", @@ -49,11 +49,11 @@ async def test_supported_scenes(light_strip: wizlight) -> None: "Relax", "True colors", "TV time", - "Plantgrowth", + "Plant growth", "Spring", "Summer", "Fall", - "Deepdive", + "Deep dive", "Jungle", "Mojito", "Club", @@ -63,6 +63,8 @@ async def test_supported_scenes(light_strip: wizlight) -> None: "Golden white", "Pulse", "Steampunk", + "Diwali", + "Alarm", "Rhythm", ] diff --git a/pywizlight/tests/test_bulb_rgbw_1_21_4.py b/pywizlight/tests/test_bulb_rgbw_1_21_4.py index 2fced71..72a1a3c 100644 --- a/pywizlight/tests/test_bulb_rgbw_1_21_4.py +++ b/pywizlight/tests/test_bulb_rgbw_1_21_4.py @@ -47,10 +47,10 @@ 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", @@ -58,11 +58,11 @@ async def test_supported_scenes(rgbw_bulb: wizlight) -> None: "Relax", "True colors", "TV time", - "Plantgrowth", + "Plant growth", "Spring", "Summer", "Fall", - "Deepdive", + "Deep dive", "Jungle", "Mojito", "Club", @@ -72,5 +72,7 @@ async def test_supported_scenes(rgbw_bulb: wizlight) -> None: "Golden white", "Pulse", "Steampunk", + "Diwali", + "Alarm", "Rhythm", ] diff --git a/pywizlight/tests/test_bulb_turnable_white.py b/pywizlight/tests/test_bulb_turnable_white.py index 77dd6eb..3ed2ebb 100644 --- a/pywizlight/tests/test_bulb_turnable_white.py +++ b/pywizlight/tests/test_bulb_turnable_white.py @@ -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", @@ -54,4 +54,6 @@ async def test_supported_scenes(turnable_bulb: wizlight) -> None: "Golden white", "Pulse", "Steampunk", + "Diwali", + "Alarm", ]