Update doc: pytest section in setup.cfg

This commit is contained in:
tadashigaki 2019-10-01 02:44:07 +09:00
parent 88434f1f42
commit acfd0fd9d6
1 changed files with 4 additions and 1 deletions

View File

@ -134,10 +134,13 @@ progress output, you can write it into a configuration file:
.. code-block:: ini
# content of pytest.ini or tox.ini
# setup.cfg files should use [tool:pytest] section instead
[pytest]
addopts = -ra -q
# content of setup.cfg
[tool:pytest]
addopts = -ra -q
Alternatively, you can set a ``PYTEST_ADDOPTS`` environment variable to add command
line options while the environment is in use: