update_260202-3
This commit is contained in:
@@ -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"
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user