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

Method scope

src/_pytest/fixtures.py:1010–1012  ·  view source on GitHub ↗

Scope string, one of "function", "class", "module", "package", "session".

(self)

Source from the content-addressed store, hash-verified

1008
1009 @property
1010 def scope(self) -> "_ScopeName":
1011 """Scope string, one of "function", "class", "module", "package", "session"."""
1012 return self._scope.value
1013
1014 def addfinalizer(self, finalizer: Callable[[], object]) -> None:
1015 self._finalizers.append(finalizer)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected