8000 Consolidate warnings for fixtures missing child devices (#1251) · python-kasa/python-kasa@9efe871 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9efe871

Browse files
authored
Consolidate warnings for fixtures missing child devices (#1251)
1 parent 3086aa8 commit 9efe871

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/fakeprotocol_smart.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,9 @@ def try_get_child_fixture_info(child_dev_info):
200200
is_child=True,
201201
)
202202
else:
203-
warn(
204-
f"Could not find child SMART fixture for {child_info}",
205-
stacklevel=2,
206-
)
203+
pytest.fixtures_missing_methods.setdefault( # type: ignore[attr-defined]
204+
parent_fixture_name, set()
205+
).add("child_devices")
207206
else:
208207
warn(
209208
f"Child is a cameraprotocol which needs to be implemented {child_info}",

0 commit comments

Comments
 (0)
0