1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Mark config-flow-test-coverage as done in SFR Box IQS (#157485)

This commit is contained in:
epenet
2025-11-28 12:46:01 +01:00
committed by GitHub
parent 9e1bc637e2
commit 5a4d51e57a
4 changed files with 6 additions and 4 deletions

View File

@@ -6,5 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/sfr_box",
"integration_type": "device",
"iot_class": "local_polling",
"quality_scale": "bronze",
"requirements": ["sfrbox-api==0.1.0"]
}

View File

@@ -3,9 +3,7 @@ rules:
config-flow: done
test-before-configure: done
unique-config-entry: done
config-flow-test-coverage:
status: todo
comment: We should test created mac address
config-flow-test-coverage: done
runtime-data: done
test-before-setup: done
appropriate-polling: done

View File

@@ -1879,7 +1879,6 @@ INTEGRATIONS_WITHOUT_SCALE = [
"sesame",
"seven_segments",
"seventeentrack",
"sfr_box",
"sharkiq",
"shell_command",
"shodan",

View File

@@ -56,6 +56,7 @@ async def test_config_flow_skip_auth(
assert result["type"] is FlowResultType.CREATE_ENTRY
assert result["title"] == "SFR Box"
assert result["data"] == {CONF_HOST: "192.168.0.1"}
assert result["context"]["unique_id"] == "e4:5d:51:00:11:22"
assert len(mock_setup_entry.mock_calls) == 1
@@ -112,6 +113,7 @@ async def test_config_flow_skip_auth_failure(
assert result["type"] is FlowResultType.CREATE_ENTRY
assert result["title"] == "SFR Box"
assert result["data"] == {CONF_HOST: "192.168.0.1"}
assert result["context"]["unique_id"] == "e4:5d:51:00:11:22"
assert len(mock_setup_entry.mock_calls) == 1
@@ -167,6 +169,7 @@ async def test_config_flow_with_auth(
CONF_USERNAME: "admin",
CONF_PASSWORD: "valid",
}
assert result["context"]["unique_id"] == "e4:5d:51:00:11:22"
assert len(mock_setup_entry.mock_calls) == 1
@@ -237,6 +240,7 @@ async def test_config_flow_with_auth_failure(
CONF_USERNAME: "admin",
CONF_PASSWORD: "valid",
}
assert result["context"]["unique_id"] == "e4:5d:51:00:11:22"
assert len(mock_setup_entry.mock_calls) == 1