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

Method test_collectonly_skipped_module

testing/test_terminal.py:420–428  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

418 )
419
420 def test_collectonly_skipped_module(self, pytester: Pytester) -> None:
421 pytester.makepyfile(
422 """
423 import pytest
424 pytest.skip("hello")
425 """
426 )
427 result = pytester.runpytest("--collect-only", "-rs")
428 result.stdout.fnmatch_lines(["*ERROR collecting*"])
429
430 def test_collectonly_displays_test_description(
431 self, pytester: Pytester, dummy_yaml_custom_test

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected