mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Fix mqtt reloading and rework tests (#62950)
* Improve mqtt reloading/tests and fix issues * Cleanup fixture for reloading test * isort and black remove replaced test_reloadable
This commit is contained in:
@@ -18,6 +18,7 @@ from .test_common import (
|
||||
help_test_discovery_removal,
|
||||
help_test_discovery_update,
|
||||
help_test_discovery_update_unchanged,
|
||||
help_test_reloadable,
|
||||
help_test_unique_id,
|
||||
)
|
||||
|
||||
@@ -175,3 +176,10 @@ async def test_discovery_broken(hass, mqtt_mock, caplog):
|
||||
await help_test_discovery_broken(
|
||||
hass, mqtt_mock, caplog, scene.DOMAIN, data1, data2
|
||||
)
|
||||
|
||||
|
||||
async def test_reloadable(hass, mqtt_mock, caplog, tmp_path):
|
||||
"""Test reloading the MQTT platform."""
|
||||
domain = scene.DOMAIN
|
||||
config = DEFAULT_CONFIG[domain]
|
||||
await help_test_reloadable(hass, mqtt_mock, caplog, tmp_path, domain, config)
|
||||
|
||||
Reference in New Issue
Block a user