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

Method _find

src/_pytest/doctest.py:525–535  ·  view source on GitHub ↗
(
                self, tests, obj, name, module, source_lines, globs, seen
            )

Source from the content-addressed store, hash-verified

523 )
524
525 def _find(
526 self, tests, obj, name, module, source_lines, globs, seen
527 ) -> None:
528 if _is_mocked(obj):
529 return
530 with _patch_unwrap_mock_aware():
531
532 # Type ignored because this is a private function.
533 super()._find( # type:ignore[misc]
534 tests, obj, name, module, source_lines, globs, seen
535 )
536
537 if self.path.name == "conftest.py":
538 module = self.config.pluginmanager._importconftest(

Callers

nothing calls this directly

Calls 2

_is_mockedFunction · 0.85
_patch_unwrap_mock_awareFunction · 0.85

Tested by

no test coverage detected