MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_calls_show_2

Method test_calls_show_2

testing/acceptance_test.py:875–882  ·  view source on GitHub ↗
(self, pytester: Pytester, mock_timing)

Source from the content-addressed store, hash-verified

873 )
874
875 def test_calls_show_2(self, pytester: Pytester, mock_timing) -> None:
876
877 pytester.makepyfile(self.source)
878 result = pytester.runpytest_inprocess("--durations=2")
879 assert result.ret == 0
880
881 lines = result.stdout.get_lines_after("*slowest*durations*")
882 assert "4 passed" in lines[2]
883
884 def test_calls_showall(self, pytester: Pytester, mock_timing) -> None:
885 pytester.makepyfile(self.source)

Callers

nothing calls this directly

Calls 3

get_lines_afterMethod · 0.80
makepyfileMethod · 0.45
runpytest_inprocessMethod · 0.45

Tested by

no test coverage detected