We've got some code we want to test, and some tests.
The tests need to be able to import the code under test, or at least the API to it, in order to run tests against it.
How do we do that? How do we set things up so that our tests can import our code?
In this episode, we discuss two options:
- Installing the code under test as a pip installable package with `pip install -e /path/to/local/package`.
- Using the pythonpath pytest setting.
Fler avsnitt av Test & Code
Visa alla avsnitt av Test & CodeTest & Code med Brian Okken finns tillgänglig på flera plattformar. Informationen på denna sida kommer från offentliga podd-flöden.
