mirror of https://github.com/pytest-dev/pytest.git
parent
9bcd7704ab
commit
c962c86845
|
@ -8,7 +8,7 @@ pytest import mechanisms and ``sys.path``/``PYTHONPATH``
|
|||
Import modes
|
||||
------------
|
||||
|
||||
pytest as a testing framework that needs to import test modules and ``conftest.py`` files for execution.
|
||||
pytest as a testing framework needs to import test modules and ``conftest.py`` files for execution.
|
||||
|
||||
Importing files in Python is a non-trivial process, so aspects of the
|
||||
import process can be controlled through the ``--import-mode`` command-line flag, which can assume
|
||||
|
@ -78,7 +78,7 @@ these values:
|
|||
|
||||
For non-test modules, this will work if they are accessible via :py:data:`sys.path`. So
|
||||
for example, ``.env/lib/site-packages/app/core.py`` will be importable as ``app.core``.
|
||||
This is happens when plugins import non-test modules (for example doctesting).
|
||||
This happens when plugins import non-test modules (for example doctesting).
|
||||
|
||||
If this step succeeds, the module is returned.
|
||||
|
||||
|
|
Loading…
Reference in New Issue