Checkpoint React frontend migration
This commit is contained in:
9
backend/test_fetch.py
Normal file
9
backend/test_fetch.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import asyncio
|
||||
from fastapi.testclient import TestClient
|
||||
from app.main import app
|
||||
|
||||
client = TestClient(app)
|
||||
client.post("/admin/login", data={"username": "admin", "password": "password"})
|
||||
response = client.get("/admin/hierarchy")
|
||||
print(response.status_code)
|
||||
print(response.text)
|
||||
Reference in New Issue
Block a user