Files
platform-project/modules/request-module/tests/test_api/test_users.py
T
alex 6c86f0f571 TT-003: complete request-module integration into modular platform
- integrated request-module into module registry
- moved backend into modules/request-module
- added manifest.json and module.py
- implemented dynamic router mounting
- implemented dynamic static mounting
- removed direct dependencies from platform core
- verified startup with request-module
- verified startup without request-module
- added implementation_report_003.md
2026-08-06 16:31:27 +03:00

28 lines
791 B
Python

"""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