- Introduced session management endpoints to list, revoke, and cleanup sessions per user. - Added cron-based job for periodic cleanup of expired sessions. - Implemented `CRUDSession` for session-specific database operations. - Integrated session cleanup startup and shutdown events in the application lifecycle. - Enhanced CORS configuration to include `X-Device-Id` for session tracking. - Added comprehensive integration tests for multi-device login, per-device logout, session listing, and cleanup logic.
9 lines
264 B
INI
9 lines
264 B
INI
[pytest]
|
|
testpaths = tests
|
|
python_files = test_*.py
|
|
addopts = --disable-warnings
|
|
markers =
|
|
sqlite: marks tests that should run on SQLite (mocked).
|
|
postgres: marks tests that require a real PostgreSQL database.
|
|
asyncio_default_fixture_loop_scope = function
|