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

Method _run_doctest_report

testing/test_doctest.py:1415–1432  ·  view source on GitHub ↗
(self, pytester, format)

Source from the content-addressed store, hash-verified

1413
1414class TestDoctestReportingOption:
1415 def _run_doctest_report(self, pytester, format):
1416 pytester.makepyfile(
1417 """
1418 def foo():
1419 '''
1420 >>> foo()
1421 a b
1422 0 1 4
1423 1 2 4
1424 2 3 6
1425 '''
1426 print(' a b\\n'
1427 '0 1 4\\n'
1428 '1 2 5\\n'
1429 '2 3 6')
1430 """
1431 )
1432 return pytester.runpytest("--doctest-modules", "--doctest-report", format)
1433
1434 @pytest.mark.parametrize("format", ["udiff", "UDIFF", "uDiFf"])
1435 def test_doctest_report_udiff(self, pytester, format):

Calls 2

makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected