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

Method test_calls

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

Source from the content-addressed store, hash-verified

952 """
953
954 def test_calls(self, pytester: Pytester, mock_timing) -> None:
955 pytester.makepyfile(self.source)
956 result = pytester.runpytest_inprocess("--durations=10")
957 assert result.ret == 0
958
959 result.stdout.fnmatch_lines_random(
960 ["*durations*", "*call*test_3*", "*call*test_2*"]
961 )
962
963 result.stdout.fnmatch_lines(
964 ["(8 durations < 0.005s hidden. Use -vv to show these durations.)"]
965 )
966
967 def test_calls_show_2(self, pytester: Pytester, mock_timing) -> None:
968 pytester.makepyfile(self.source)

Callers

nothing calls this directly

Calls 4

fnmatch_lines_randomMethod · 0.80
fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytest_inprocessMethod · 0.45

Tested by

no test coverage detected