Skip to content

Commit

Permalink
Merge pull request #113 from bdraco/getmac_cover
Browse files Browse the repository at this point in the history
Add test coverage for getMac
  • Loading branch information
sbidy committed Feb 9, 2022
2 parents 52d697e + 8cdfa42 commit f345bdc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pywizlight/tests/test_bulb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f345bdc

Please sign in to comment.