MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / test_valid_rules_persisted

Method test_valid_rules_persisted

core/tests.py:130–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

128 """Verify set_dvr_series_rules sanitizes input before persisting."""
129
130 def test_valid_rules_persisted(self):
131 rules = [{"tvg_id": "abc", "mode": "all", "title": "Show"}]
132 result = CoreSettings.set_dvr_series_rules(rules)
133 self.assertEqual(result, rules)
134 self.assertEqual(CoreSettings.get_dvr_series_rules(), rules)
135
136 def test_non_dict_elements_stripped_on_write(self):
137 dirty = ["bad", 42, {"tvg_id": "abc", "mode": "all", "title": ""}]

Callers

nothing calls this directly

Calls 2

set_dvr_series_rulesMethod · 0.80
get_dvr_series_rulesMethod · 0.80

Tested by

no test coverage detected