mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Include deprecated constants in wildcard imports (#107114)
This commit is contained in:
@@ -20,6 +20,7 @@ from homeassistant.helpers import (
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
flush_store,
|
||||
help_test_all,
|
||||
import_and_test_deprecated_constant_enum,
|
||||
)
|
||||
|
||||
@@ -2018,6 +2019,11 @@ async def test_loading_invalid_configuration_url_from_storage(
|
||||
assert entry.configuration_url == "invalid"
|
||||
|
||||
|
||||
def test_all() -> None:
|
||||
"""Test module.__all__ is correctly set."""
|
||||
help_test_all(dr)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(("enum"), list(dr.DeviceEntryDisabler))
|
||||
def test_deprecated_constants(
|
||||
caplog: pytest.LogCaptureFixture,
|
||||
|
||||
Reference in New Issue
Block a user