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

Function test_clp_arg_file

tests/test_pex_binary.py:53–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_clp_arg_file():
54 # type: () -> None
55 with NamedTemporaryFile() as tmpfile:
56 tmpfile.write(to_bytes("-r\nrequirements1.txt\r-r\nrequirements2.txt"))
57 tmpfile.flush()
58
59 parser = configure_clp()
60 options = parser.parse_args(args=["@" + tmpfile.name])
61 assert options.requirement_files == ["requirements1.txt", "requirements2.txt"]
62
63
64def test_clp_preamble_file():

Callers

nothing calls this directly

Calls 4

to_bytesFunction · 0.90
configure_clpFunction · 0.90
parse_argsMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected