(arrow_compose_path)
| 494 | |
| 495 | |
| 496 | def test_compose_push(arrow_compose_path): |
| 497 | compose = DockerCompose(arrow_compose_path, params=dict(PYTHON="3.9")) |
| 498 | expected_env = PartialEnv(PYTHON="3.9") |
| 499 | expected_calls = [ |
| 500 | mock.call(["docker", "login", "--username", "user", |
| 501 | "--password-stdin"], input=b"pass", check=True), |
| 502 | ] |
| 503 | for image in ["conda-cpp", "conda-python", "conda-python-pandas"]: |
| 504 | expected_calls.append( |
| 505 | mock.call(["docker", "compose", f"--file={compose.config.path}", |
| 506 | "push", image], check=True, env=expected_env) |
| 507 | ) |
| 508 | with assert_subprocess_calls(expected_calls): |
| 509 | compose.push("conda-python-pandas", user="user", password="pass") |
| 510 | |
| 511 | |
| 512 | def test_compose_push_custom_server(arrow_compose_path): |
nothing calls this directly
no test coverage detected