mirror of
https://gitea.publichub.eu/oscar.krause/fastapi-dls.git
synced 2024-11-24 23:38:50 +00:00
added tests for new endpoints
This commit is contained in:
parent
8b9c7d688b
commit
1b2da802cb
32
test/main.py
32
test/main.py
@ -44,11 +44,43 @@ def test_status():
|
|||||||
assert response.json()['status'] == 'up'
|
assert response.json()['status'] == 'up'
|
||||||
|
|
||||||
|
|
||||||
|
def test_health():
|
||||||
|
response = client.get('/-/health')
|
||||||
|
assert response.status_code == 200
|
||||||
|
assert response.json()['status'] == 'up'
|
||||||
|
|
||||||
|
|
||||||
|
def test_readme():
|
||||||
|
response = client.get('/-/readme')
|
||||||
|
assert response.status_code == 200
|
||||||
|
|
||||||
|
|
||||||
|
def test_manage():
|
||||||
|
response = client.get('/-/manage')
|
||||||
|
assert response.status_code == 200
|
||||||
|
|
||||||
|
|
||||||
def test_client_token():
|
def test_client_token():
|
||||||
response = client.get('/client-token')
|
response = client.get('/client-token')
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
|
|
||||||
|
|
||||||
|
def test_origins():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def test_origins_delete():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def test_leases():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def test_lease_delete():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def test_auth_v1_origin():
|
def test_auth_v1_origin():
|
||||||
payload = {
|
payload = {
|
||||||
"registration_pending": False,
|
"registration_pending": False,
|
||||||
|
Loading…
Reference in New Issue
Block a user