1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-25 03:09:52 +01:00

Add tests/components/conftest.py to core files (#128425)

This commit is contained in:
epenet
2024-10-15 10:34:54 +02:00
committed by GitHub
parent c3e7fcc153
commit 3ba3fbf4a5
7 changed files with 34 additions and 0 deletions

View File

@@ -500,6 +500,10 @@ async def test_initialize_flow_unauth(
assert resp.status == HTTPStatus.UNAUTHORIZED
@pytest.mark.parametrize(
"ignore_translations",
["component.test.config.abort.bla"],
)
async def test_abort(hass: HomeAssistant, client: TestClient) -> None:
"""Test a flow that aborts."""
mock_platform(hass, "test.config_flow", None)
@@ -2351,6 +2355,10 @@ async def test_flow_with_multiple_schema_errors_base(
}
@pytest.mark.parametrize(
"ignore_translations",
["component.test.config.abort.reconfigure_successful"],
)
@pytest.mark.usefixtures("enable_custom_integrations", "freezer")
async def test_supports_reconfigure(
hass: HomeAssistant,