-
Notifications
You must be signed in to change notification settings - Fork 25
Testing
Sylvain Bellemare edited this page Oct 31, 2016
·
1 revision
A pytest note about the practice of importing "stuff" from a conftest.py
module:
Note
If you have conftest.py files which do not reside in a python package directory (i.e. one containing an init.py) then “import conftest” can be ambiguous because there might be other conftest.py files as well on your PYTHONPATH or sys.path. It is thus good practise for projects to either put conftest.py under a package scope or to never import anything from a conftest.py file.