(tmpdir)
| 228 | |
| 229 | |
| 230 | def test_pex_builder_setuptools_script(tmpdir): |
| 231 | # type: (Any) -> None |
| 232 | |
| 233 | pex_file = os.path.join(str(tmpdir), "app.pex") |
| 234 | with make_bdist( |
| 235 | name="my_project", |
| 236 | ) as dist: |
| 237 | pb = PEXBuilder() |
| 238 | pb.add_dist_location(dist.location) |
| 239 | pb.set_script("shell_script") |
| 240 | pb.build(pex_file) |
| 241 | |
| 242 | assert "hello world from shell script\n" == subprocess.check_output(args=[pex_file]).decode( |
| 243 | "utf-8" |
| 244 | ) |
| 245 | |
| 246 | |
| 247 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected