Test-Driven Development with Python, Testcontainers, and pytest
- Docker Desktop
git clone https://github.com/collabnix/testcontainers-python
cd testcontainers-python
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install psycopg
pip install pytest
pip install testcontainers
pip freeze > requirements.txt
pytest
To set this interpreter as the default for all new projects: