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

Method copy_example

src/_pytest/legacypath.py:143–145  ·  view source on GitHub ↗

See :meth:`Pytester.copy_example`.

(self, name=None)

Source from the content-addressed store, hash-verified

141 return legacy_path(self._pytester.mkpydir(name))
142
143 def copy_example(self, name=None) -> LEGACY_PATH:
144 """See :meth:`Pytester.copy_example`."""
145 return legacy_path(self._pytester.copy_example(name))
146
147 def getnode(self, config: Config, arg) -> Optional[Union[Item, Collector]]:
148 """See :meth:`Pytester.getnode`."""

Callers

nothing calls this directly

Calls 1

legacy_pathFunction · 0.90

Tested by

no test coverage detected