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

Function test_next_lower

testing/test_scope.py:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def test_next_lower() -> None:
15 assert Scope.Session.next_lower() is Scope.Package
16 assert Scope.Package.next_lower() is Scope.Module
17 assert Scope.Module.next_lower() is Scope.Class
18 assert Scope.Class.next_lower() is Scope.Function
19
20 with pytest.raises(ValueError, match="Function is the lower-most scope"):
21 Scope.Function.next_lower()
22
23
24def test_next_higher() -> None:

Callers

nothing calls this directly

Calls 1

next_lowerMethod · 0.80

Tested by

no test coverage detected