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

Function test_pex_from_rc

tests/test_variables.py:159–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157
158
159def test_pex_from_rc():
160 # type: () -> None
161 with named_temporary_file(mode="w") as pexrc:
162 pexrc.write("HELLO=42")
163 pexrc.flush()
164 v = Variables(rc=pexrc.name)
165 assert v._get_int("HELLO") == 42
166
167
168def test_pexrc_precedence():

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