aboutsummaryrefslogtreecommitdiff
path: root/app/tests/test_fastapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/tests/test_fastapi.py')
-rw-r--r--app/tests/test_fastapi.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/tests/test_fastapi.py b/app/tests/test_fastapi.py
new file mode 100644
index 0000000..c6b40cc
--- /dev/null
+++ b/app/tests/test_fastapi.py
@@ -0,0 +1,10 @@
+from starlette.testclient import TestClient
+
+from api import app as fastapi_app
+
+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