()
| 197 | |
| 198 | |
| 199 | def test_build_pex(): |
| 200 | # type: () -> None |
| 201 | with temporary_dir() as sandbox: |
| 202 | pex_path = os.path.join(sandbox, "pex") |
| 203 | results = run_pex_command(["ansicolors==1.1.8", "--output-file", pex_path]) |
| 204 | results.assert_success() |
| 205 | stdout, returncode = run_simple_pex( |
| 206 | pex=pex_path, args=["-c", 'import colors; print(" ".join(colors.COLORS))'] |
| 207 | ) |
| 208 | assert 0 == returncode |
| 209 | assert b"black red green yellow blue magenta cyan white" == stdout.strip() |
| 210 | |
| 211 | |
| 212 | def test_run_pex(): |
nothing calls this directly
no test coverage detected