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

Function test_capture_conftest_runtest_setup

testing/test_capture.py:760–770  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

758
759
760def test_capture_conftest_runtest_setup(pytester: Pytester) -> None:
761 pytester.makeconftest(
762 """
763 def pytest_runtest_setup():
764 print("hello19")
765 """
766 )
767 pytester.makepyfile("def test_func(): pass")
768 result = pytester.runpytest()
769 assert result.ret == 0
770 result.stdout.no_fnmatch_line("*hello19*")
771
772
773def test_capture_badoutput_issue412(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

no_fnmatch_lineMethod · 0.80
makeconftestMethod · 0.45
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected