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

Method test_with_deselected

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

Source from the content-addressed store, hash-verified

1015 assert found_test_numbers == set(expected_test_numbers)
1016
1017 def test_with_deselected(self, pytester: Pytester, mock_timing) -> None:
1018 pytester.makepyfile(self.source)
1019 result = pytester.runpytest_inprocess("--durations=2", "-k test_3")
1020 assert result.ret == 0
1021
1022 result.stdout.fnmatch_lines(["*durations*", "*call*test_3*"])
1023
1024 def test_with_failing_collection(self, pytester: Pytester, mock_timing) -> None:
1025 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