Refactor some mqtt tests not the just use schema validation (#94330)

Remove help_test_validate_platform_config
This commit is contained in:
Jan Bouwhuis
2023-06-09 12:30:26 +02:00
committed by GitHub
parent 5fb41777fd
commit c984604a6c
8 changed files with 47 additions and 72 deletions

View File

@ -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(