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

Method test_collect_module_empty

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

Source from the content-addressed store, hash-verified

42 assert len(items) == 0
43
44 def test_collect_module_empty(self, pytester: Pytester):
45 path = pytester.makepyfile(whatever="#")
46 for p in (path, pytester.path):
47 items, _reprec = pytester.inline_genitems(p, "--doctest-modules")
48 assert len(items) == 0
49
50 def test_collect_module_single_modulelevel_doctest(self, pytester: Pytester):
51 path = pytester.makepyfile(whatever='""">>> pass"""')

Callers

nothing calls this directly

Calls 2

makepyfileMethod · 0.45
inline_genitemsMethod · 0.45

Tested by

no test coverage detected