mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-04 12:24:52 +00:00
app->libretranslate; mv tests/ inside libretranslate/
This commit is contained in:
parent
40a1141eac
commit
a23a9fbd75
47 changed files with 24 additions and 25 deletions
10
libretranslate/tests/test_api/test_api_spec.py
Normal file
10
libretranslate/tests/test_api/test_api_spec.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue