Remove config paramter from pytest_terminal_summary as discussed during review

This commit is contained in:
Bruno Oliveira 2018-02-27 07:26:25 -03:00
parent 4e405dd9f9
commit 94050a8aaf
2 changed files with 1 additions and 3 deletions

View File

@ -489,10 +489,9 @@ def pytest_report_teststatus(report):
Stops at first non-None result, see :ref:`firstresult` """ 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. """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 _pytest.terminal.TerminalReporter terminalreporter: the internal terminal reporter object
:param int exitstatus: the exit status that will be reported back to the OS :param int exitstatus: the exit status that will be reported back to the OS

View File

@ -480,7 +480,6 @@ class TerminalReporter(object):
EXIT_NOTESTSCOLLECTED) EXIT_NOTESTSCOLLECTED)
if exitstatus in summary_exit_codes: if exitstatus in summary_exit_codes:
self.config.hook.pytest_terminal_summary(terminalreporter=self, self.config.hook.pytest_terminal_summary(terminalreporter=self,
config=self.config,
exitstatus=exitstatus) exitstatus=exitstatus)
if exitstatus == EXIT_INTERRUPTED: if exitstatus == EXIT_INTERRUPTED:
self._report_keyboardinterrupt() self._report_keyboardinterrupt()