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
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user