Setup project, started outlining endpoints and tests.
This commit is contained in:
commit
33cd28376d
41 files changed
+5177
No files matched your search
@@ -0,0 +1,13 @@
|
||||
"""Unit tests for main.py."""
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.main import app
|
||||
|
||||
client = TestClient(app)
|
||||
|
||||
|
||||
def test_status_check() -> None:
|
||||
"""Tests that status check returns 200."""
|
||||
response = client.get("/")
|
||||
assert response.status_code == 200
|
||||
Reference in new issue
Block a user