mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-09 20:24:02 +00:00
Use rich for prettier output, if available (#403)
Use rich for prettier output, if available. This does not add a new dependency, but rather uses rich if it's installed.
This commit is contained in:
@@ -33,9 +33,9 @@ async def test_state(dev, turn_on):
|
||||
await dev.update()
|
||||
|
||||
if dev.is_on:
|
||||
assert "Device state: ON" in res.output
|
||||
assert "Device state: True" in res.output
|
||||
else:
|
||||
assert "Device state: OFF" in res.output
|
||||
assert "Device state: False" in res.output
|
||||
|
||||
|
||||
async def test_alias(dev):
|
||||
|
Reference in New Issue
Block a user