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

Method next_lower

src/_pytest/scope.py:42–47  ·  view source on GitHub ↗

Return the next lower scope.

(self)

Source from the content-addressed store, hash-verified

40 Session = "session"
41
42 def next_lower(self) -> Scope:
43 """Return the next lower scope."""
44 index = _SCOPE_INDICES[self]
45 if index == 0:
46 raise ValueError(f"{self} is the lower-most scope")
47 return _ALL_SCOPES[index - 1]
48
49 def next_higher(self) -> Scope:
50 """Return the next higher scope."""

Callers 2

reorder_items_atscopeFunction · 0.80
test_next_lowerFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_next_lowerFunction · 0.64