test(server): add pytest scaffold with SQLite + mocked memory backend

Lays the groundwork for Tasks 2-10 of the REST API authorization fix plan.
Adds an in-memory SQLite test engine, a TestClient fixture that
short-circuits Memory.from_config() (pgvector is unavailable in tests),
and reusable fixtures for admin/member users, JWTs, the legacy
ADMIN_API_KEY env, and AUTH_DISABLED mode.
This commit is contained in:
Mgeeeek
2026-05-13 20:47:17 +05:30
parent 7b109d90de
commit 79e04c56f6
3 changed files with 190 additions and 0 deletions
View File