medilang-tech / tests /test_users_endpoints.py
Dama03's picture
first push of the AI
411a994
raw
history blame contribute delete
509 Bytes
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