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

Method test_new_pattern

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

Source from the content-addressed store, hash-verified

113 reprec.assertoutcome(failed=1)
114
115 def test_new_pattern(self, pytester: Pytester):
116 p = pytester.maketxtfile(
117 xdoc="""
118 >>> x = 1
119 >>> x == 1
120 False
121 """
122 )
123 reprec = pytester.inline_run(p, "--doctest-glob=x*.txt")
124 reprec.assertoutcome(failed=1)
125
126 def test_multiple_patterns(self, pytester: Pytester):
127 """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