MCPcopy Index your code
hub / github.com/pex-tool/pex / test_pex_string_variables

Function test_pex_string_variables

tests/test_variables.py:67–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65
66
67def test_pex_string_variables():
68 # type: () -> None
69 assert Variables(environ={})._maybe_get_string("NOT_HERE") is None
70 with pytest.raises(NoValueError):
71 Variables(environ={})._get_string("NOT_HERE")
72 assert Variables(environ={"HERE": "stuff"})._get_string("HERE") == "stuff"
73
74
75def test_pex_get_int():

Callers

nothing calls this directly

Calls 3

VariablesClass · 0.90
_maybe_get_stringMethod · 0.80
_get_stringMethod · 0.80

Tested by

no test coverage detected