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

Method test_new_pattern

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

Source from the content-addressed store, hash-verified

142 reprec.assertoutcome(passed=1)
143
144 def test_new_pattern(self, pytester: Pytester):
145 p = pytester.maketxtfile(
146 xdoc="""
147 >>> x = 1
148 >>> x == 1
149 False
150 """
151 )
152 reprec = pytester.inline_run(p, "--doctest-glob=x*.txt")
153 reprec.assertoutcome(failed=1)
154
155 def test_multiple_patterns(self, pytester: Pytester):
156 """Test support for multiple --doctest-glob arguments (#1255)."""

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
maketxtfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected