diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-12-02 15:00:09 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-12-02 15:00:09 -0800 |
commit | a0bf87d7e397f65a1b6ca856bfc887239cbc3830 (patch) | |
tree | 7e5cc8878ffbafa847d5298ee950b4a43e27ba4e /tests | |
parent | 639111158b56966d4ac91150de15102bb80c1877 (diff) | |
download | fatcat-scholar-a0bf87d7e397f65a1b6ca856bfc887239cbc3830.tar.gz fatcat-scholar-a0bf87d7e397f65a1b6ca856bfc887239cbc3830.zip |
improve Accept-Language header parsing
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: """ |