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

Method test_simple_doctestfile

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
maketxtfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected