Test & Code

221: How to get pytest to import your code under test

Jun 3, 2024
Exploring how to make pytest import your code under test including options like installing code with pip install -e /path/to/local/package and using the pythonpath pytest setting. Discussing the challenges of importing code for pytest and the benefits of packaging for distribution. Learning how to set the Python path in PyTest configuration files for code import.
Ask episode
Chapters
Transcript
Episode notes