MCPcopy
hub / github.com/pytest-dev/pytest / test_simple_doctestfile

Method test_simple_doctestfile

testing/test_doctest.py:107–116  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

105 assert items[0].parent is items[1].parent
106
107 def test_simple_doctestfile(self, pytester: Pytester):
108 p = pytester.maketxtfile(
109 test_doc="""
110 >>> x = 1
111 >>> x == 1
112 False
113 """
114 )
115 reprec = pytester.inline_run(p)
116 reprec.assertoutcome(failed=1)
117
118 def test_importmode(self, pytester: Pytester):
119 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
maketxtfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected