diff --git a/tests/conftest.py b/tests/conftest.py index 934c8fe..62152b6 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -14,12 +14,15 @@ def auto_enable_custom_integrations(enable_custom_integrations): @pytest.fixture def bypass_setup_fixture(): """Prevent setup.""" - with patch( - "custom_components.volkswagencarnet.async_setup", - return_value=True, - ), patch( - "custom_components.volkswagencarnet.async_setup_entry", - return_value=True, + with ( + patch( + "custom_components.volkswagencarnet.async_setup", + return_value=True, + ), + patch( + "custom_components.volkswagencarnet.async_setup_entry", + return_value=True, + ), ): yield diff --git a/tests/util_test.py b/tests/util_test.py index 2c1872f..dca7973 100644 --- a/tests/util_test.py +++ b/tests/util_test.py @@ -42,10 +42,11 @@ async def test_get_coordinator(hass: HomeAssistant): } # We want to skip the actual setup flow here - with patch.object( - homeassistant.config_entries.ConfigEntries, "async_setup" - ) as flow, patch.object( - homeassistant.config_entries.ConfigEntries, "_async_schedule_save" + with ( + patch.object(homeassistant.config_entries.ConfigEntries, "async_setup") as flow, + patch.object( + homeassistant.config_entries.ConfigEntries, "_async_schedule_save" + ), ): f: Future = Future() f.set_result(True)