Join Slack
Powered by
I’ll find a source in a sec, but basically pytest ...
# general
f
fierce-park-88503
11/05/2018, 8:55 PM
I’ll find a source in a sec, but basically pytest doesn’t look in all imported modules, just in the test’s own file (which is why importing the unused dep into the test file helps) and some other pre-configured set places (like conftest.py)
fierce-park-88503
11/05/2018, 10:27 PM
source on how pytest loads “plugins”, and I believe it only looks in plugins to find fixtures:
https://docs.pytest.org/en/latest/writing_plugins.html#plugin-discovery-order-at-tool-startup
4
Views
Open in Slack
Previous
Next