import httpx
import time

def test_login(email, password):
    start = time.time()
    try:
        r = httpx.post("http://localhost:8002/api/v1/auth/login/", json={
            "email": email,
            "password": password
        }, timeout=5.0)
        dur = time.time() - start
        print(f"Testing {email} / {password} (took {dur:.2f}s):")
        print(f"  Status: {r.status_code}")
        print(f"  Response: {r.json()}")
    except Exception as e:
        print(f"  => ERROR: {e}")

print("--- Running Original API Tests ---")
test_login("nonexistent@test.com", "completelywrongpass")
test_login("nonexistent@test.com", "Admin@123")
test_login("kunal.verma@indovisionservices.in", "completelywrongpass")
test_login("kunal.verma@indovisionservices.in", "Admin@123")
