(
tmpdir, # type: Any
request, # type: Any
)
| 272 | |
| 273 | @pytest.fixture |
| 274 | def empty_pex( |
| 275 | tmpdir, # type: Any |
| 276 | request, # type: Any |
| 277 | ): |
| 278 | # type: (...) -> str |
| 279 | pex_root = os.path.join(str(tmpdir), "pex_root") |
| 280 | result = run_pex_command( |
| 281 | [ |
| 282 | "--pex-root", |
| 283 | pex_root, |
| 284 | "--runtime-pex-root", |
| 285 | pex_root, |
| 286 | "-o", |
| 287 | os.path.join(str(tmpdir), "pex"), |
| 288 | "--seed", |
| 289 | "verbose", |
| 290 | ] |
| 291 | + request.param |
| 292 | ) |
| 293 | result.assert_success() |
| 294 | return cast(str, json.loads(result.output)["pex"]) |
| 295 | |
| 296 | |
| 297 | @readline_test |
nothing calls this directly
no test coverage detected