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

Method verbose_testfile

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

Source from the content-addressed store, hash-verified

961
962 @pytest.fixture
963 def verbose_testfile(self, pytester: Pytester) -> Path:
964 return pytester.makepyfile(
965 """
966 import pytest
967 def test_fail():
968 raise ValueError()
969 def test_pass():
970 pass
971 class TestClass(object):
972 def test_skip(self):
973 pytest.skip("hello")
974 def test_gen():
975 def check(x):
976 assert x == 1
977 yield check, 0
978 """
979 )
980
981 def test_verbose_reporting(self, verbose_testfile, pytester: Pytester) -> None:
982 result = pytester.runpytest(

Callers

nothing calls this directly

Calls 1

makepyfileMethod · 0.45

Tested by

no test coverage detected