Include deprecated constants in wildcard imports (#107114)
This commit is contained in:
parent
c063bf403a
commit
c805ea7b4f
52 changed files with 438 additions and 137 deletions
|
@ -15,7 +15,7 @@ from homeassistant.core import HomeAssistant
|
|||
import homeassistant.helpers.entity_registry as er
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import import_and_test_deprecated_constant_enum
|
||||
from tests.common import help_test_all, import_and_test_deprecated_constant_enum
|
||||
from tests.testing_config.custom_components.test.fan import MockFan
|
||||
|
||||
|
||||
|
@ -150,6 +150,11 @@ async def test_preset_mode_validation(
|
|||
assert exc.value.translation_key == "not_valid_preset_mode"
|
||||
|
||||
|
||||
def test_all() -> None:
|
||||
"""Test module.__all__ is correctly set."""
|
||||
help_test_all(fan)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(("enum"), list(fan.FanEntityFeature))
|
||||
def test_deprecated_constants(
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue