Fix mention using --rootdir mention inside pytest.ini (not supported) (#6825)

Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
Bruno Oliveira 2020-06-06 19:17:40 -03:00 committed by GitHub
parent 10bfcf5904
commit ceac6736d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -39,8 +39,9 @@ Here's a summary what ``pytest`` uses ``rootdir`` for:
influence how modules are imported. See :ref:`pythonpath` for more details.
The ``--rootdir=path`` command-line option can be used to force a specific directory.
The directory passed may contain environment variables when it is used in conjunction
with ``addopts`` in a ``pytest.ini`` file.
Note that contrary to other command-line options, ``--rootdir`` cannot be used with
:confval:`addopts` inside ``pytest.ini`` because the ``rootdir`` is used to *find* ``pytest.ini``
already.
Finding the ``rootdir``
~~~~~~~~~~~~~~~~~~~~~~~