Spaces:
Sleeping
Sleeping
| from fastapi.testclient import TestClient | |
| from main import app | |
| client = TestClient(app) | |
| def test_users_register_stubbed(): | |
| r = client.post("/api/users/register", json={ | |
| "email": "test@example.com", | |
| "password": "secret", | |
| "preferred_language": "fr" | |
| }) | |
| assert r.status_code == 501 | |
| def test_users_login_stubbed(): | |
| r = client.post("/api/users/login", data={ | |
| "username": "test@example.com", | |
| "password": "secret" | |
| }) | |
| assert r.status_code == 501 | |