feat: 增加升级说明页,退出弹窗默认选退出系统

This commit is contained in:
Nixevol
2026-11-18 10:22:53 +08:00
parent 3670a76dfe
commit 71373839c6
6 changed files with 119 additions and 5 deletions
+9
View File
@@ -1220,3 +1220,12 @@ def test_exam_list_rejects_unrecognized_page() -> None:
client.client = HTTP()
with pytest.raises(RuntimeError, match="考试列表没有获取到"):
client.my_exams()
def test_notice_page_is_reachable_only_by_its_address() -> None:
import euniv.api as api_module
response = TestClient(api_module.app).get("/msg01")
assert response.status_code == 200
assert 'id="app"' in response.text
assert response.headers["cache-control"] == "no-cache"