Framework Mode - Test containers with Docker
Folder Structure
project-root/
├── tests/
│ ├── test_service.py # Test files using pytest
│ └── conftest.py # Fixtures for test containers setup
├── docker/
│ ├── Dockerfile # Dockerfile for service under test
│ └── docker-compose.yml # Optional: Compose for multi-container setup
├── src/
│ └── app.py # Application source code
├── requirements.txt # Python dependencies including testcontainers
└── pytest.ini # pytest configuration