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

Method find_scope

testing/python/metafunc.py:217–218  ·  view source on GitHub ↗
(argnames, indirect)

Source from the content-addressed store, hash-verified

215 # use arguments to determine narrow scope; the cause of the bug is that it would look on all
216 # fixture defs given to the method
217 def find_scope(argnames, indirect):
218 return _find_parametrized_scope(argnames, fixtures_defs, indirect=indirect)
219
220 assert find_scope(["func_fix"], indirect=True) == Scope.Function
221 assert find_scope(["class_fix"], indirect=True) == Scope.Class

Callers

nothing calls this directly

Calls 1

_find_parametrized_scopeFunction · 0.90

Tested by

no test coverage detected