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

Function test_pex_script

tests/test_packaging.py:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def test_pex_script():
34 # type: () -> None
35 output = subprocess.check_output(
36 args=[script_path("pex"), "--version"],
37 # On Python 2.7 --version gets printed to stderr.
38 stderr=subprocess.STDOUT,
39 )
40 assert __version__ == output.decode("utf-8").strip()
41
42
43def test_pex_tools_script():

Callers

nothing calls this directly

Calls 3

script_pathFunction · 0.85
stripMethod · 0.80
decodeMethod · 0.80

Tested by

no test coverage detected