Remove config paramter from pytest_terminal_summary as discussed during review
This commit is contained in:
parent
4e405dd9f9
commit
94050a8aaf
|
@ -489,10 +489,9 @@ def pytest_report_teststatus(report):
|
|||
Stops at first non-None result, see :ref:`firstresult` """
|
||||
|
||||
|
||||
def pytest_terminal_summary(config, terminalreporter, exitstatus):
|
||||
def pytest_terminal_summary(terminalreporter, exitstatus):
|
||||
"""Add a section to terminal summary reporting.
|
||||
|
||||
:param _pytest.config.Config config: pytest config object
|
||||
:param _pytest.terminal.TerminalReporter terminalreporter: the internal terminal reporter object
|
||||
:param int exitstatus: the exit status that will be reported back to the OS
|
||||
|
||||
|
|
|
@ -480,7 +480,6 @@ class TerminalReporter(object):
|
|||
EXIT_NOTESTSCOLLECTED)
|
||||
if exitstatus in summary_exit_codes:
|
||||
self.config.hook.pytest_terminal_summary(terminalreporter=self,
|
||||
config=self.config,
|
||||
exitstatus=exitstatus)
|
||||
if exitstatus == EXIT_INTERRUPTED:
|
||||
self._report_keyboardinterrupt()
|
||||
|
|
Loading…
Reference in New Issue