add important comment to conftest

This commit is contained in:
Daniel 2023-11-22 15:33:48 +01:00
parent 387977a54a
commit aa913445f6

View file

@ -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 from pathlib import Path
import pytest import pytest