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

Method test_verbose_reporting

testing/test_terminal.py:981–993  ·  view source on GitHub ↗
(self, verbose_testfile, pytester: Pytester)

Source from the content-addressed store, hash-verified

979 )
980
981 def test_verbose_reporting(self, verbose_testfile, pytester: Pytester) -> None:
982 result = pytester.runpytest(
983 verbose_testfile, "-v", "-Walways::pytest.PytestWarning"
984 )
985 result.stdout.fnmatch_lines(
986 [
987 "*test_verbose_reporting.py::test_fail *FAIL*",
988 "*test_verbose_reporting.py::test_pass *PASS*",
989 "*test_verbose_reporting.py::TestClass::test_skip *SKIP*",
990 "*test_verbose_reporting.py::test_gen *XFAIL*",
991 ]
992 )
993 assert result.ret == 1
994
995 def test_verbose_reporting_xdist(
996 self,

Callers

nothing calls this directly

Calls 2

fnmatch_linesMethod · 0.80
runpytestMethod · 0.45

Tested by

no test coverage detected