Skip to content

Commit

Permalink
update test_app pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
zcemycl committed Oct 22, 2023
1 parent 27931bc commit beaf31a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from fastapi.testclient import TestClient


def test_root(test_client: TestClient):
resp = test_client.get("/")
assert resp.status_code == 200
assert resp.json() == {"Hello": "World"}

0 comments on commit beaf31a

Please sign in to comment.