ервый импорт проекта

This commit is contained in:
Арсентьев Александр
2026-08-06 00:01:51 +03:00
commit a2ac226028
9523 changed files with 999716 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
"""Test user endpoints."""
import pytest
from fastapi.testclient import TestClient
from app.main import app
class TestUsers:
"""Test user endpoints."""
def test_get_users(self, client: TestClient, auth_headers: dict):
"""Test getting users list."""
response = client.get("/api/v1/users/", headers=auth_headers)
assert response.status_code == 200
data = response.json()
assert "users" in data
assert "total" in data
def test_get_me(self, client: TestClient, auth_headers: dict):
"""Test getting current user."""
response = client.get("/api/v1/users/me", headers=auth_headers)
assert response.status_code == 200
data = response.json()
assert "id" in data
assert "email" in data