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

Method test_calls

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

Source from the content-addressed store, hash-verified

860 """
861
862 def test_calls(self, pytester: Pytester, mock_timing) -> None:
863 pytester.makepyfile(self.source)
864 result = pytester.runpytest_inprocess("--durations=10")
865 assert result.ret == 0
866
867 result.stdout.fnmatch_lines_random(
868 ["*durations*", "*call*test_3*", "*call*test_2*"]
869 )
870
871 result.stdout.fnmatch_lines(
872 ["(8 durations < 0.005s hidden. Use -vv to show these durations.)"]
873 )
874
875 def test_calls_show_2(self, pytester: Pytester, mock_timing) -> None:
876

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