Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show "short test summary info" after tracebacks and warnings #3255

Merged
merged 2 commits into from
Feb 27, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove config paramter from pytest_terminal_summary as discussed duri…
…ng review
  • Loading branch information
nicoddemus committed Feb 27, 2018
commit 94050a8aaf63f7890e3599bf10f43e1e2a31e8b7
3 changes: 1 addition & 2 deletions _pytest/hookspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion _pytest/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,6 @@ def pytest_sessionfinish(self, exitstatus):
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()
Expand Down