MCPcopy
hub / github.com/pytest-dev/pytest / test_calls_show_2

Method test_calls_show_2

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

Source from the content-addressed store, hash-verified

965 )
966
967 def test_calls_show_2(self, pytester: Pytester, mock_timing) -> None:
968 pytester.makepyfile(self.source)
969 result = pytester.runpytest_inprocess("--durations=2")
970 assert result.ret == 0
971
972 lines = result.stdout.get_lines_after("*slowest*durations*")
973 assert "4 passed" in lines[2]
974
975 def test_calls_showall(self, pytester: Pytester, mock_timing) -> None:
976 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