Merge pull request #2554 from nicoddemus/pytest-configure-order

Clarify pytest_configure hook call order
This commit is contained in:
Ronny Pfannschmidt 2017-07-05 14:22:55 +02:00 committed by GitHub
commit 7cd03d7611
2 changed files with 12 additions and 3 deletions

View File

@ -60,9 +60,17 @@ def pytest_addoption(parser):
@hookspec(historic=True)
def pytest_configure(config):
""" called after command line options have been parsed
and all plugins and initial conftest files been loaded.
This hook is called for every plugin.
"""
Allows plugins and conftest files to perform initial configuration.
This hook is called for every plugin and initial conftest file
after command line options have been parsed.
After that, the hook is called for other conftest files as they are
imported.
:arg config: pytest config object
:type config: _pytest.config.Config
"""
# -------------------------------------------------------------------------

1
changelog/2539.doc Normal file
View File

@ -0,0 +1 @@
Clarify ``pytest_configure`` hook call order.