update_260202-3

This commit is contained in:
lusixing
2026-02-02 22:22:11 -08:00
parent 106c3421e6
commit 9cbd3347f6
9 changed files with 125 additions and 6 deletions

View File

@@ -14,7 +14,8 @@ async def test_ai_proxy_integration():
print(f"1. Registering user: {username}")
reg_res = await client.post("/register", json={
"username": username,
"password": "testpassword"
"password": "testpassword",
"email": f"user_{int(time.time())}@example.com"
})
if reg_res.status_code != 200:
print(f"Registration failed: {reg_res.text}")
@@ -22,7 +23,7 @@ async def test_ai_proxy_integration():
# 2. Login to get token
print("2. Logging in...")
login_res = await client.post("/token", json={
login_res = await client.post("/login", json={
"username": username,
"password": "testpassword"
})