add important comment to conftest
This commit is contained in:
parent
387977a54a
commit
aa913445f6
1 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,11 @@
|
|||
# regarding conftest:
|
||||
# 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.
|
||||
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue