mantimon-tcg/backend/tests/db/conftest.py
Cal Corum c00ee87f25 Switch to testcontainers for automatic test container management
- Create tests/conftest.py with testcontainers for Postgres and Redis
- Auto-detect Docker Desktop socket and disable Ryuk for compatibility
- Update tests/db/conftest.py and tests/services/conftest.py to use shared fixtures
- Fix test_resolve_effect_logs_exceptions: logger was disabled by pytest
- Fix test_save_and_load_with_real_redis: use redis_url fixture
- Minor lint fix in engine_validation.py

Tests now auto-start containers on run - no need for `docker compose up`
All 1199 tests passing.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 16:49:11 -06:00

13 lines
457 B
Python

"""Database-specific test fixtures for Mantimon TCG.
This module extends the shared fixtures from tests/conftest.py with
any database-test-specific helpers.
The db_session and redis_client fixtures are inherited from the parent conftest.
"""
# All shared fixtures (db_session, redis_client, postgres_container, redis_container)
# are inherited from tests/conftest.py - no need to redefine them here.
# Add any db-test-specific fixtures below if needed.