mirror of
https://github.com/home-assistant/core
synced 2024-07-21 10:44:07 +00:00
Fix mqtt test fixture usage (#120602)
This commit is contained in:
parent
8839a71adc
commit
dd6cc82f70
|
@ -1561,7 +1561,7 @@ async def test_setup_with_advanced_settings(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.usesfixtures("mock_ssl_context", "mock_process_uploaded_file")
|
@pytest.mark.usefixtures("mock_ssl_context", "mock_process_uploaded_file")
|
||||||
async def test_change_websockets_transport_to_tcp(
|
async def test_change_websockets_transport_to_tcp(
|
||||||
hass: HomeAssistant, mock_try_connection: MagicMock
|
hass: HomeAssistant, mock_try_connection: MagicMock
|
||||||
) -> None:
|
) -> None:
|
||||||
|
|
|
@ -499,7 +499,7 @@ async def test_image_from_url_fails(
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@pytest.mark.usesfixtures("hass", "hass_client_no_auth")
|
@pytest.mark.usefixtures("hass", "hass_client_no_auth")
|
||||||
async def test_image_config_fails(
|
async def test_image_config_fails(
|
||||||
mqtt_mock_entry: MqttMockHAClientGenerator,
|
mqtt_mock_entry: MqttMockHAClientGenerator,
|
||||||
caplog: pytest.LogCaptureFixture,
|
caplog: pytest.LogCaptureFixture,
|
||||||
|
|
Loading…
Reference in a new issue