From dd6cc82f709deee8b092cae5301faca8b603536e Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:30:30 +0200 Subject: [PATCH] Fix mqtt test fixture usage (#120602) --- tests/components/mqtt/test_config_flow.py | 2 +- tests/components/mqtt/test_image.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/components/mqtt/test_config_flow.py b/tests/components/mqtt/test_config_flow.py index 57975fdc309..457bd19c16f 100644 --- a/tests/components/mqtt/test_config_flow.py +++ b/tests/components/mqtt/test_config_flow.py @@ -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( hass: HomeAssistant, mock_try_connection: MagicMock ) -> None: diff --git a/tests/components/mqtt/test_image.py b/tests/components/mqtt/test_image.py index 29109ee12f4..bb029fba231 100644 --- a/tests/components/mqtt/test_image.py +++ b/tests/components/mqtt/test_image.py @@ -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( mqtt_mock_entry: MqttMockHAClientGenerator, caplog: pytest.LogCaptureFixture,