Initial commit: site monorepo with API, web, and infra.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
влад
2026-07-16 10:11:54 +03:00
co-authored by Cursor
commit 016910ffb7
447 changed files with 73972 additions and 0 deletions
@@ -0,0 +1,24 @@
def test_wesp_auth_login(client):
response = client.post(
"/api/auth/login",
json={"login": "admin@compton.example", "password": "Admin1234"},
)
assert response.status_code == 200
body = response.json()
assert body["status"] == "success"
assert body.get("access_token")
def test_wesp_auth_check(client):
login = client.post(
"/api/v1/auth/login",
json={"email": "admin@compton.example", "password": "Admin1234"},
)
token = login.json()["access_token"]
response = client.get("/api/auth/check", headers={"Authorization": f"Bearer {token}"})
assert response.status_code == 200
body = response.json()
assert body["status"] == "success"
assert body["authenticated"] is True
assert body["user_login"] == "admin@compton.example"
assert body["is_superuser"] is True