fix(lint): add parse_config tests to satisfy pyright unused-import
test / unit (pull_request) Successful in 32s
test / integration (pull_request) Successful in 43s
lint / lint (push) Successful in 1m26s
prd-number / assign-numbers (push) Successful in 35s
test / unit (push) Successful in 28s
test / integration (push) Successful in 44s
Update Quality Badges / update-badges (push) Failing after 1m8s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit was merged in pull request #207.
This commit is contained in:
2026-06-07 20:25:59 -04:00
parent 545ff3582f
commit 55cb3429d4
+10
View File
@@ -315,6 +315,16 @@ class TestLoadConfig(unittest.TestCase):
self.assertIsInstance(cfg, Config)
self.assertEqual("x.example", cfg.routes[0].host)
def test_parse_config_accepts_dict(self):
cfg = parse_config({"routes": [{"host": "x.example"}], "log": 1})
self.assertIsInstance(cfg, Config)
self.assertEqual(LOG_BLOCKS, cfg.log)
self.assertEqual("x.example", cfg.routes[0].host)
def test_parse_config_rejects_non_dict(self):
with self.assertRaises(ValueError):
parse_config("not a dict")
# --- evaluate_matches ---------------------------------------------------