aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_web.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_web.py')
-rw-r--r--tests/test_web.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_web.py b/tests/test_web.py
index b3e99a1..a5629e0 100644
--- a/tests/test_web.py
+++ b/tests/test_web.py
@@ -25,6 +25,10 @@ def test_main_view(client: Any) -> None:
assert resp.status_code == 200
assert "معلومات عن" in resp.content.decode("utf-8")
+ resp = client.get("/", headers={"Accept-Language": "zh_Hans_CN"})
+ assert resp.status_code == 200
+ assert "我们是" in resp.content.decode("utf-8")
+
def test_basic_api(client: Any) -> None:
"""