10 lines
279 B
Python
10 lines
279 B
Python
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)
|