Python Integration Testing — Core Patterns Deep Knowledge : Use with technology: for comprehensive documentation on patterns, SQLAlchemy fixtures, Alembic, and CI/CD. Test Pyramid (70/20/10 Rule) Integration tests touch at least 2 real components: - Application code + real database - API endpoint + real dependency - Message producer + real broker conftest.py Architecture pytest Markers GitHub Actions — Testcontainers vs Service Containers Testcontainers (recommended): containers managed by the test code itself. Service containers (simpler for single-service tests): | | Testcontainers | Servic…