Skip to content

Commit

Permalink
Add note documenting pytest-dev#2257
Browse files Browse the repository at this point in the history
  • Loading branch information
vmuriart committed Feb 17, 2017
1 parent 58d7f4e commit a88017c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion _pytest/hookspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,14 @@ def pytest_assertrepr_compare(config, op, left, right):
# -------------------------------------------------------------------------

def pytest_report_header(config, startdir):
""" return a string to be displayed as header info for terminal reporting."""
""" return a string to be displayed as header info for terminal reporting.
.. note::
This function should be implemented only in plugins or ``conftest.py``
files situated at the tests root directory due to how pytest
:ref:`discovers plugins during startup <pluginorder>`.
"""

@hookspec(firstresult=True)
def pytest_report_teststatus(report):
Expand Down

0 comments on commit a88017c

Please sign in to comment.