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

Method test_early_skip

testing/acceptance_test.py:226–237  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

224 ]
225
226 def test_early_skip(self, pytester: Pytester) -> None:
227 pytester.mkdir("xyz")
228 pytester.makeconftest(
229 """
230 import pytest
231 def pytest_collect_file():
232 pytest.skip("early")
233 """
234 )
235 result = pytester.runpytest()
236 assert result.ret == ExitCode.NO_TESTS_COLLECTED
237 result.stdout.fnmatch_lines(["*1 skip*"])
238
239 def test_issue88_initial_file_multinodes(self, pytester: Pytester) -> None:
240 pytester.copy_example("issue88_initial_file_multinodes")

Callers

nothing calls this directly

Calls 4

fnmatch_linesMethod · 0.80
mkdirMethod · 0.45
makeconftestMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected