Injecting modules into tests with Pytest
There is a known slightly boring problem with tests. You have conftest.py
, which is magical and is always available in tests (but only via hooks and fixtures, and double-magical ‘request’ metafunc). If you want to have it outside fixtures, things become…