MCPcopy
hub / github.com/pex-tool/pex / test_pexrc_precedence

Function test_pexrc_precedence

tests/test_variables.py:168–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166
167
168def test_pexrc_precedence():
169 # type: () -> None
170 with named_temporary_file(mode="w") as pexrc:
171 pexrc.write("HELLO=FORTYTWO")
172 pexrc.flush()
173 v = Variables(rc=pexrc.name, environ={"HELLO": "42"})
174 assert v._get_int("HELLO") == 42
175
176
177def test_rc_ignore():

Callers

nothing calls this directly

Calls 4

_get_intMethod · 0.95
named_temporary_fileFunction · 0.90
VariablesClass · 0.90
writeMethod · 0.45

Tested by

no test coverage detected