(arrow_compose_path)
| 544 | |
| 545 | |
| 546 | def test_image_with_gpu(arrow_compose_path): |
| 547 | compose = DockerCompose(arrow_compose_path) |
| 548 | |
| 549 | expected_calls = [ |
| 550 | [ |
| 551 | "run", "--rm", "--gpus", "all", |
| 552 | "-e", "CUDA_ENV=1", |
| 553 | "-e", "OTHER_ENV=2", |
| 554 | "-v", "/host:/container", |
| 555 | "apache/arrow:ubuntu-cuda", |
| 556 | "/bin/bash", "-c", "echo 1 > /tmp/dummy && cat /tmp/dummy", |
| 557 | ] |
| 558 | ] |
| 559 | with assert_docker_calls(compose, expected_calls): |
| 560 | compose.run('ubuntu-cuda') |
| 561 | |
| 562 | |
| 563 | def test_listing_images(arrow_compose_path): |
nothing calls this directly
no test coverage detected