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

Method test_calls_showall

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

Source from the content-addressed store, hash-verified

882 assert "4 passed" in lines[2]
883
884 def test_calls_showall(self, pytester: Pytester, mock_timing) -> None:
885 pytester.makepyfile(self.source)
886 result = pytester.runpytest_inprocess("--durations=0")
887 assert result.ret == 0
888
889 tested = "3"
890 for x in tested:
891 for y in ("call",): # 'setup', 'call', 'teardown':
892 for line in result.stdout.lines:
893 if ("test_%s" % x) in line and y in line:
894 break
895 else:
896 raise AssertionError(f"not found {x} {y}")
897
898 def test_calls_showall_verbose(self, pytester: Pytester, mock_timing) -> None:
899 pytester.makepyfile(self.source)

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
runpytest_inprocessMethod · 0.45

Tested by

no test coverage detected