Skip to content

Commit

Permalink
Add a minimal test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hv0905 committed Dec 25, 2023
1 parent fd1aeb3 commit 21c93a3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Empty file added tests/__init__.py
Empty file.
Empty file added tests/api/__init__.py
Empty file.
10 changes: 10 additions & 0 deletions tests/api/test_home.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from fastapi.testclient import TestClient

from app.webapp import app

client = TestClient(app)


def test_get_home():
response = client.get("/")
assert response.status_code == 200

0 comments on commit 21c93a3

Please sign in to comment.