Ignore fridge /rm/control/vs/0 plumbing href (#165)
TP1X_REF_21K's EU region variant reports a bare resource-monitoring poll-interval config (minPeriod in ms) the US variant doesn't -- the only unbound href keeping the coverage-gap repair open. Door sensors, the reporter's actual ask, were already covered generically by fridge.DOOR_GENERIC/DOORS_FALLACK.
This commit is contained in:
4 files changed
+526
No files matched your search
@@ -191,6 +191,27 @@ def test_registry_reproduces_golden_state_keys_for_tp1x_ref_21k_us():
|
||||
)
|
||||
|
||||
|
||||
def test_registry_reproduces_golden_state_keys_for_tp1x_ref_21k_eu():
|
||||
"""TP1X_REF_21K, EU region variant (issue #165) -- self-reports
|
||||
oneUiVersion "7.0 Refrigerator" like the US variant, but additionally
|
||||
carries /rm/control/vs/0 (a bare resource-monitoring poll-interval
|
||||
config, added to the global ignore list) that the US dump doesn't
|
||||
report at all. Door sensors (the reporter's actual ask) were already
|
||||
covered by fridge.DOOR_GENERIC/DOORS_FALLBACK -- this href was the only
|
||||
gap keeping the coverage repair open."""
|
||||
from tests.conftest import _load_device
|
||||
resources = _load_device('refrigerator_tp1x_ref_21k_eu')
|
||||
golden = json.loads(
|
||||
(GOLDEN / 'refrigerator_tp1x_ref_21k_eu.json').read_text()
|
||||
)
|
||||
state_keys = _new_state_keys('refrigerator_tp1x_ref_21k_eu', resources)
|
||||
assert set(state_keys) == set(golden['state_keys']), (
|
||||
f"state_keys mismatch:\n"
|
||||
f" extra: {sorted(set(state_keys) - set(golden['state_keys']))}\n"
|
||||
f" missing: {sorted(set(golden['state_keys']) - set(state_keys))}"
|
||||
)
|
||||
|
||||
|
||||
def test_registry_reproduces_golden_state_keys_for_range_hood():
|
||||
from tests.conftest import _load_device
|
||||
resources = _load_device('range_hood')
|
||||
|
||||
Reference in new issue
Block a user