Testing Complex Python Dependencies With Docker Containers
summary
Uses Docker to encapsulate external, stateful dependencies (browsers, databases) so tests run against exact versions and controlled environments, with ban network access to prevent silent auto-updates. Builds small Dockerfiles per dependency, layers those images underneath code and tests, and runs unit/pytest harnesses inside containers to reproduce failures, layer dependencies under code, and run multiple versions concurrently. Result: reproducible rollbacks, cheaper debugging via repeated runs, and easier detection of behavior changes across versions.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:08Testing Complex Python Dependency
- 0:55Python Testing
- 8:12Common Use Cases for Containers
- 8:38Test Setup
- 13:17Debugging
related talks
34mModern development environments for Pythonistas
23mCleaning Up Your Python Environment Superfund Site
16mTesting Container Images with Python and Pytest
48mUsing Docker for Testing Legacy Code
40mDocker and Python: making them play nicely and securely for Data Science and ML
30mContainers Without the Magic
13mBuilding reproducible dev environments with Docker
34mTest Environments Management with
