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

Method makeit

testing/test_doctest.py:1099–1105  ·  view source on GitHub ↗
(doctest)

Source from the content-addressed store, hash-verified

1097 @pytest.fixture(params=["text", "module"])
1098 def makedoctest(self, pytester, request):
1099 def makeit(doctest):
1100 mode = request.param
1101 if mode == "text":
1102 pytester.maketxtfile(doctest)
1103 else:
1104 assert mode == "module"
1105 pytester.makepyfile('"""\n%s"""' % doctest)
1106
1107 return makeit
1108

Callers

nothing calls this directly

Calls 2

maketxtfileMethod · 0.45
makepyfileMethod · 0.45

Tested by

no test coverage detected