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
|
@ -59,6 +59,7 @@ from tests.common import (
|
|||
async_capture_events,
|
||||
async_fire_time_changed,
|
||||
async_mock_service,
|
||||
help_test_all,
|
||||
import_and_test_deprecated_constant,
|
||||
mock_restore_cache,
|
||||
)
|
||||
|
@ -2569,6 +2570,11 @@ async def test_websocket_config(
|
|||
assert msg["error"]["code"] == "not_found"
|
||||
|
||||
|
||||
def test_all() -> None:
|
||||
"""Test module.__all__ is correctly set."""
|
||||
help_test_all(automation)
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("constant_name", "replacement"),
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue