claude-memory/graph/solutions/testcontainers-for-pytest-auto-start-2583e4.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

850 B

id type title tags importance confidence created updated
2583e4fe-772e-4c68-9dd0-9b415f883c0d solution Testcontainers for pytest auto-start
mantimon-tcg
python
pytest
testcontainers
docker
fix
0.7 0.8 2026-01-28T22:51:44.046249+00:00 2026-01-28T22:51:44.046249+00:00

Switched from requiring manual docker-compose up to testcontainers for automatic container management in tests. Key fixes: 1) Auto-detect Docker Desktop socket at ~/.docker/desktop/docker.sock, 2) Disable Ryuk with TESTCONTAINERS_RYUK_DISABLED=true, 3) Create shared tests/conftest.py with session-scoped postgres_container and redis_container fixtures, 4) Expose redis_url fixture for tests needing to create their own clients (avoids event loop issues), 5) Fix logger capture test - pytest disables loggers, need to set registry_logger.disabled=False