diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_web.py | 4 |
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: """ |