mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 18:28:14 +02:00
Refactor some mqtt tests not the just use schema validation (#94330)
Remove help_test_validate_platform_config
This commit is contained in:
@ -198,10 +198,7 @@ async def test_fail_setup_if_no_command_topic(
|
||||
"""Test if setup fails with no command topic."""
|
||||
with pytest.raises(AssertionError):
|
||||
await mqtt_mock_entry()
|
||||
assert (
|
||||
"Invalid config for [mqtt]: required key not provided @ data['mqtt']['light'][0]['command_topic']. Got None."
|
||||
in caplog.text
|
||||
)
|
||||
assert "Invalid config for [mqtt]: required key not provided" in caplog.text
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
Reference in New Issue
Block a user