Peach: Local-first video metadata scraper and media manager.
test(library): 对齐统一任务接口和凭据折叠契约
longmeidao8bc3f59f737d
diff --git a/tests/test_follow_web.py b/tests/test_follow_web.pyindex 9937e62c2..295381f6e 100644--- a/tests/test_follow_web.py+++ b/tests/test_follow_web.py@@ -2309,10 +2309,10 @@ class FollowWebSourceTests(unittest.TestCase):self.assertPageContains("form.reset();await openFollowManage(false)")self.assertPageContains("data-cred-clear")- def test_only_a_missing_required_credential_demands_attention(self):- # 可选的、不需要的、站点接不进来的都收起来;永远展开就是永久噪音。- self.assertPageContains("row.requirement==='required'&&!configured")- self.assertPageContains("${needsAttention?' open':''}")+ def test_credentials_are_collapsed_and_the_source_menu_offers_configuration(self):+ self.assertPageContains("row?.requirement==='required'")+ self.assertPageContains('data-srcfilter-config=')+ self.assertNotIn("${needsAttention?' open':''}", self.page)def test_the_watch_page_does_not_carry_source_management(self):# 输入框、移除、凭据都只属于管理页;看的那页保持干净。diff --git a/tests/test_rm_web.py b/tests/test_rm_web.pyindex 27b4edebc..dc0db8f25 100644--- a/tests/test_rm_web.py+++ b/tests/test_rm_web.py@@ -819,6 +819,7 @@ class WebDataTests(unittest.TestCase):def test_contract_handler_registries_are_complete_and_unknown_routes_fail(self):self.assertEqual(set(rm_web.GET_HANDLERS), {+ "/api/library-processing","/api/scraping", "/api/scraping/cover","/api/items", "/api/item", "/api/entity", "/api/photos", "/api/photo-set","/api/index", "/api/parts", "/api/editions", "/api/duplicates", "/api/quality-goals",@@ -831,6 +832,7 @@ class WebDataTests(unittest.TestCase):"/api/taste", "/api/settings", "/api/links",})self.assertEqual(set(rm_web.POST_HANDLERS), {+ "/api/library-processing","/api/scraping/settings", "/api/scraping/check", "/api/scraping/cover","/api/activity", "/api/play", "/api/feedback", "/api/watch-later","/api/playlist",