Explorar o código

Tests: bypass setup for options_flow test

After recent HA changes, this test hangs.  Bypass the calls to HA function
that is hanging, to avoid the problem.
Jason Rumney hai 1 ano
pai
achega
a5f9b28b0f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/test_config_flow.py

+ 1 - 1
tests/test_config_flow.py

@@ -566,7 +566,7 @@ async def test_options_flow_init(hass):
 
 @pytest.mark.asyncio
 @patch("custom_components.tuya_local.config_flow.async_test_connection")
-async def test_options_flow_modifies_config(mock_test, hass):
+async def test_options_flow_modifies_config(mock_test, hass, bypass_setup):
     mock_device = MagicMock()
     mock_test.return_value = mock_device