From 8cdfa424407fe353b6d206f1a20ba7c814ea38d7 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 9 Feb 2022 11:35:38 -0600 Subject: [PATCH] Add test coverage for getMac --- pywizlight/tests/test_bulb.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pywizlight/tests/test_bulb.py b/pywizlight/tests/test_bulb.py index b81fec0..d774387 100644 --- a/pywizlight/tests/test_bulb.py +++ b/pywizlight/tests/test_bulb.py @@ -226,6 +226,15 @@ async def test_fw_version(correct_bulb: wizlight) -> None: assert correct_bulb.mac == "a8bb5006033d" +@pytest.mark.asyncio +async def test_get_mac(correct_bulb: wizlight) -> None: + """Test getting the mac address.""" + mac = await correct_bulb.getMac() + assert mac == "a8bb5006033d" + mac = await correct_bulb.getMac() + assert mac == "a8bb5006033d" + + # Error states / Timout @pytest.mark.asyncio async def test_timeout(bad_bulb: wizlight) -> None: