fix: add cross-day dedupe
This commit is contained in:
@@ -16,6 +16,12 @@ class ConfigLoadingTests(unittest.TestCase):
|
||||
self.assertEqual(configs[0].name, "AI HOT")
|
||||
self.assertEqual(configs[0].type, "aihot")
|
||||
|
||||
def test_rss_configs_can_set_max_item_age_days(self):
|
||||
configs = load_source_configs(ROOT / "config" / "sources.json")
|
||||
by_name = {config.name: config for config in configs}
|
||||
|
||||
self.assertEqual(by_name["InfoQ AI"].max_item_age_days, 3)
|
||||
|
||||
def test_all_configured_source_types_are_registered(self):
|
||||
configs = load_source_configs(ROOT / "config" / "sources.json")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user