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

Method spy_find_spec

testing/test_assertrewrite.py:1397–1399  ·  view source on GitHub ↗
(name, path)

Source from the content-addressed store, hash-verified

1395 return p in self._initialpaths
1396
1397 def spy_find_spec(name, path):
1398 self.find_spec_calls.append(name)
1399 return importlib.machinery.PathFinder.find_spec(name, path)
1400
1401 hook = AssertionRewritingHook(pytestconfig)
1402 # use default patterns, otherwise we inherit pytest's testing config

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
find_specMethod · 0.80

Tested by

no test coverage detected