mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-10-26 19:11:26 +01:00
MAESTRO: scaffold backend fastapi app
This commit is contained in:
1 parent
7a3b958904
commit
9f58c3218c
11 files changed
+140
No files matched your search
@@ -0,0 +1 @@
|
||||
"""Backend tests package."""
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from app.main import app
|
||||
|
||||
|
||||
client = TestClient(app)
|
||||
|
||||
|
||||
def test_root_returns_ok() -> None:
|
||||
response = client.get("/")
|
||||
assert response.status_code == 200
|
||||
assert response.json() == {"status": "ok"}
|
||||
Reference in new issue
Block a user