mirror of
https://github.com/hackspace-marburg/flaggenschnapp.git
synced 2025-12-24 17:31:02 +01:00
13 lines
287 B
Python
13 lines
287 B
Python
from starlette.responses import Response
|
|
from starlette.testclient import TestClient
|
|
|
|
from api import API
|
|
from routes import ROUTE_ROOT
|
|
|
|
|
|
def test_root():
|
|
app = API()
|
|
client = TestClient(app)
|
|
response: Response = client.get(ROUTE_ROOT)
|
|
assert response.status_code == 200
|