python-kasa/kasa/tests/test_feature_brightness.py
Steven B 97680bdcee
Refactor test framework (#794)
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)
2024-02-27 18:39:04 +01:00

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