feat: add browser workbench and managed local launchers

This commit is contained in:
Codex
2026-10-11 14:00:14 +08:00
parent 389b2aa3a5
commit 23f3a15a15
17 changed files with 627 additions and 0 deletions
+7
View File
@@ -37,6 +37,13 @@ def test_source_year_mismatch_prevents_wrongly_dated_catalog():
CatalogClient(CatalogTransport()).verify_year(2026)
def test_current_catalog_year_is_read_from_vue_page_configuration():
class ConfiguredYear(CatalogTransport):
def request(self, *args, **kwargs):
return Response({}, text='<h2>{{curYear}}年硕士专业目录</h2><script>curYear: "2027",</script>Copyright 2026')
assert CatalogClient(ConfiguredYear()).verify_year(2027) == 2027
def test_school_lookup_rejects_ambiguous_or_wrong_campus():
class SearchTransport:
def request(self, *args, **kwargs):