feat: add browser workbench and managed local launchers
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user