Skip to content

Commit

Permalink
add test_common
Browse files Browse the repository at this point in the history
  • Loading branch information
jrycw committed Mar 3, 2024
1 parent 3f8c542 commit 9e7b671
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_common.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from http import HTTPStatus


def test_home(test_client):
response = test_client.get("/")
resp_json = response.json()

assert response.status_code == HTTPStatus.OK
assert resp_json["message"] == "Hello World from FastAPI"

0 comments on commit 9e7b671

Please sign in to comment.