Skip to content

Commit

Permalink
Merge pull request #265 from last-partizan/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Apr 10, 2023
2 parents 6a36e68 + dec1686 commit 5d8b1b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from _pytest.main import Session
from _pytest.nodes import Item
from _pytest.reports import BaseReport, CollectReport, TestReport
from _pytest.terminal import TerminalReporter
from _pytest.terminal import TerminalReporter, format_session_duration
from termcolor import colored

__version__ = "0.9.6"
Expand Down Expand Up @@ -525,7 +525,7 @@ def count(self, key: str, when: tuple = ("call",)) -> int:
def summary_stats(self) -> None:
session_duration = time.time() - self._sessionstarttime

print(f"\nResults ({round(session_duration, 2):.2f}s):")
print(f"\nResults ({format_session_duration(session_duration)}):")
if self.count("passed") > 0:
self.write_line(
colored(" % 5d passed" % self.count("passed"), THEME.success)
Expand Down

0 comments on commit 5d8b1b1

Please sign in to comment.