mirror of
https://github.com/python-kasa/python-kasa.git
synced 2024-12-23 19:53:34 +00:00
97680bdcee
This is in preparation for tests based on supporting features amongst other tweaks: - Consolidates the filtering logic that was split across `filter_model` and `filter_fixture` - Allows filtering `dev` fixture by `component` - Consolidates fixtures missing method warnings into one warning - Does not raise exceptions from `FakeSmartTransport` for missing methods (required for KS240)
13 lines
289 B
Python
13 lines
289 B
Python
from kasa.smart import SmartDevice
|
|
|
|
from .conftest import (
|
|
brightness,
|
|
)
|
|
|
|
|
|
@brightness
|
|
async def test_brightness_component(dev: SmartDevice):
|
|
"""Placeholder to test framwework component filter."""
|
|
assert isinstance(dev, SmartDevice)
|
|
assert "brightness" in dev._components
|