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

Function test_from_user

testing/test_scope.py:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def test_from_user() -> None:
37 assert Scope.from_user("module", "for parametrize", "some::id") is Scope.Module
38
39 expected_msg = "for parametrize from some::id got an unexpected scope value 'foo'"
40 with pytest.raises(pytest.fail.Exception, match=re.escape(expected_msg)):
41 Scope.from_user("foo", "for parametrize", "some::id") # type:ignore[arg-type]

Callers

nothing calls this directly

Calls 1

from_userMethod · 0.80

Tested by

no test coverage detected