Skip to content
Snippets Groups Projects
Commit 013502b4 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

rename testing files, add comments for future tests

parent 9d9dbe70
No related branches found
No related tags found
No related merge requests found
File moved
# These Tests check if the PUT calls work as intended, checking both valid puts and invalid puts
from fastapi.testclient import TestClient
from context import apiserver
from context import storage
client = TestClient(apiserver.app)
# PUT a new dataset, store the id in global variable, verify via a GET if it worked
# PUT an invalid type (i.e. a type not in the enum)
......@@ -17,4 +17,10 @@ def test_root():
def test_types():
for location_type in storage.LocationDataType:
rsp = client.get('/' + location_type.value)
assert rsp.status_code >= 200 and rsp.status_code < 300 # any 200 response is fine, as a get to the datatypes should not return any error
\ No newline at end of file
assert rsp.status_code >= 200 and rsp.status_code < 300 # any 200 response is fine, as a get to the datatypes should not return any error
# PUT a new dataset, store the id in global variable
# GET the specific dataset
# DELETE the specific dataset
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment