import requests def test_registration(): url = "http://localhost:8000/auth/register" data = { "email": "test@example.com", "password": "password123", "first_name": "Test", "last_name": "User" } response = requests.post(url, json=data) print(f"Registration Status: {response.status_code}") print(f"Registration Response: {response.json()}") def test_login(): url = "http://localhost:8000/auth/login" data = { "email": "test@example.com", "password": "password123" } response = requests.post(url, json=data) print(f"Login Status: {response.status_code}") print(f"Login Response: {response.json()}") if __name__ == "__main__": try: test_registration() test_login() except Exception as e: print(f"Error: {e}")