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

Function test_next_higher

testing/test_scope.py:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def test_next_higher() -> None:
25 assert Scope.Function.next_higher() is Scope.Class
26 assert Scope.Class.next_higher() is Scope.Module
27 assert Scope.Module.next_higher() is Scope.Package
28 assert Scope.Package.next_higher() is Scope.Session
29
30 with pytest.raises(ValueError, match="Session is the upper-most scope"):
31 Scope.Session.next_higher()
32
33
34def test_from_user() -> None:

Callers

nothing calls this directly

Calls 1

next_higherMethod · 0.80

Tested by

no test coverage detected