test: add pytest infra and device-dump fixtures

This commit is contained in:
Marc Billow committed 2026-06-30 16:32:37 -05:00
1 parent 00ff961d33
commit c6f08ea340
4 files changed
+34

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
def test_dishwasher_resources_carry_rt(dishwasher_resources):
assert dishwasher_resources, "no resources loaded"
# Every rep must expose its resource type so discovery can key on it.
missing = [h for h, rep in dishwasher_resources.items()
if not rep.get('rt')]
assert not missing, f"resources without rt: {missing}"
def test_fridge_has_autofill(fridge_resources):
assert '/autofill/vs/0' in fridge_resources
assert 'x.com.samsung.da.autofill' in fridge_resources['/autofill/vs/0']['rt']