1212_LOGGER = logging .getLogger (__name__ )
1313
1414
15- @pytest .fixture (name = "pyscript_bypass_setup" )
15+ @pytest .fixture (name = "pyscript_bypass_setup" , autouse = True )
1616def pyscript_bypass_setup_fixture ():
1717 """Mock component setup."""
1818 with patch ("custom_components.pyscript.async_setup_entry" , return_value = True ):
1919 yield
2020
2121
22- async def test_user_flow_minimum_fields (hass , pyscript_bypass_setup ):
22+ async def test_user_flow_minimum_fields (hass ):
2323 """Test user config flow with minimum fields."""
2424 # test form shows
2525 result = await hass .config_entries .flow .async_init (DOMAIN , context = {"source" : SOURCE_USER })
@@ -33,7 +33,7 @@ async def test_user_flow_minimum_fields(hass, pyscript_bypass_setup):
3333 assert not result ["data" ][CONF_ALLOW_ALL_IMPORTS ]
3434
3535
36- async def test_user_flow_all_fields (hass , pyscript_bypass_setup ,) -> None :
36+ async def test_user_flow_all_fields (hass ) :
3737 """Test user config flow with all fields."""
3838 # test form shows
3939 result = await hass .config_entries .flow .async_init (DOMAIN , context = {"source" : SOURCE_USER })
@@ -50,7 +50,7 @@ async def test_user_flow_all_fields(hass, pyscript_bypass_setup,) -> None:
5050 assert result ["data" ][CONF_ALLOW_ALL_IMPORTS ]
5151
5252
53- async def test_user_already_configured (hass , pyscript_bypass_setup ,) -> None :
53+ async def test_user_already_configured (hass ) :
5454 """Test service is already configured during user setup."""
5555 result = await hass .config_entries .flow .async_init (
5656 DOMAIN , context = {"source" : SOURCE_USER }, data = {CONF_ALLOW_ALL_IMPORTS : True }
@@ -75,7 +75,7 @@ async def test_import_flow(hass, pyscript_bypass_setup):
7575 assert result ["type" ] == data_entry_flow .RESULT_TYPE_CREATE_ENTRY
7676
7777
78- async def test_import_flow_update_entry (hass , pyscript_bypass_setup ):
78+ async def test_import_flow_update_entry (hass ):
7979 """Test import config flow updates existing entry."""
8080 result = await hass .config_entries .flow .async_init (
8181 DOMAIN , context = {"source" : SOURCE_IMPORT }, data = PYSCRIPT_SCHEMA ({})
@@ -91,7 +91,7 @@ async def test_import_flow_update_entry(hass, pyscript_bypass_setup):
9191 assert result ["reason" ] == "updated_entry"
9292
9393
94- async def test_import_flow_no_update (hass , pyscript_bypass_setup ):
94+ async def test_import_flow_no_update (hass ):
9595 """Test import config flow doesn't update existing entry when data is same."""
9696 result = await hass .config_entries .flow .async_init (
9797 DOMAIN , context = {"source" : SOURCE_IMPORT }, data = PYSCRIPT_SCHEMA ({})
0 commit comments