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

Method test_with_deselected

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

Source from the content-addressed store, hash-verified

909 raise AssertionError(f"not found {x} {y}")
910
911 def test_with_deselected(self, pytester: Pytester, mock_timing) -> None:
912 pytester.makepyfile(self.source)
913 result = pytester.runpytest_inprocess("--durations=2", "-k test_3")
914 assert result.ret == 0
915
916 result.stdout.fnmatch_lines(["*durations*", "*call*test_3*"])
917
918 def test_with_failing_collection(self, pytester: Pytester, mock_timing) -> None:
919 pytester.makepyfile(self.source)

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytest_inprocessMethod · 0.45

Tested by

no test coverage detected