aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/tests/test_fastapi.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/tests/test_fastapi.py b/app/tests/test_fastapi.py
index c6b40cc..ad0303f 100644
--- a/app/tests/test_fastapi.py
+++ b/app/tests/test_fastapi.py
@@ -7,4 +7,9 @@ fastapi_client = TestClient(fastapi_app)
def test_fastapi(app, client):
res = fastapi_client.get("/version")
assert res.status_code == 200
- assert res.json() == {"message":fastapi_app.version} \ No newline at end of file
+ assert res.json() == {"message":fastapi_app.version}
+
+ res = fastapi_client.get("/v1/user-details?email={}".format("notadmin@example.com"))
+ print(res.json())
+ assert res.status_code == 404
+ assert res.json()["detail"] == "User Not Found" \ No newline at end of file