@@ -20,8 +20,6 @@ which were registered by installed plugins.
20
20
Initialization: determining rootdir and inifile
21
21
-----------------------------------------------
22
22
23
-
24
-
25
23
pytest determines a ``rootdir `` for each test run which depends on
26
24
the command line arguments (specified test files, paths) and on
27
25
the existence of *ini-files *. The determined ``rootdir `` and *ini-file * are
@@ -30,17 +28,17 @@ printed as part of the pytest header during startup.
30
28
Here's a summary what ``pytest `` uses ``rootdir `` for:
31
29
32
30
* Construct *nodeids * during collection; each test is assigned
33
- a unique *nodeid * which is rooted at the ``rootdir `` and takes in account full path,
34
- class name, function name and parametrization (if any).
31
+ a unique *nodeid * which is rooted at the ``rootdir `` and takes into account
32
+ the full path, class name, function name and parametrization (if any).
35
33
36
34
* Is used by plugins as a stable location to store project/test run specific information;
37
35
for example, the internal :ref: `cache <cache >` plugin creates a ``.pytest_cache `` subdirectory
38
36
in ``rootdir `` to store its cross-test run state.
39
37
40
- Important to emphasize that ``rootdir `` is **NOT ** used to modify ``sys.path ``/``PYTHONPATH `` or
38
+ ``rootdir `` is **NOT ** used to modify ``sys.path ``/``PYTHONPATH `` or
41
39
influence how modules are imported. See :ref: `pythonpath ` for more details.
42
40
43
- ``--rootdir=path `` command-line option can be used to force a specific directory.
41
+ The ``--rootdir=path `` command-line option can be used to force a specific directory.
44
42
The directory passed may contain environment variables when it is used in conjunction
45
43
with ``addopts `` in a ``pytest.ini `` file.
46
44
0 commit comments