1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-11-09 01:10:14 +01:00
LibreTranslate/libretranslate/tests/test_api/test_api_spec.py

11 lines
242 B
Python
Raw Normal View History

def test_api_get_spec(client):
response = client.get("/spec")
assert response.status_code == 200
def test_api_get_spec_must_fail_bad_request_type(client):
response = client.post("/spec")
assert response.status_code == 405