(arrow_compose_path)
| 346 | |
| 347 | |
| 348 | def test_compose_build(arrow_compose_path): |
| 349 | compose = DockerCompose(arrow_compose_path) |
| 350 | |
| 351 | expected_calls = [ |
| 352 | "build conda-cpp", |
| 353 | ] |
| 354 | with assert_compose_calls(compose, expected_calls): |
| 355 | compose.build('conda-cpp') |
| 356 | |
| 357 | expected_calls = [ |
| 358 | "build --no-cache conda-cpp" |
| 359 | ] |
| 360 | with assert_compose_calls(compose, expected_calls): |
| 361 | compose.build('conda-cpp', use_cache=False) |
| 362 | |
| 363 | expected_calls = [ |
| 364 | "build conda-cpp", |
| 365 | "build conda-python", |
| 366 | "build conda-python-pandas" |
| 367 | ] |
| 368 | with assert_compose_calls(compose, expected_calls): |
| 369 | compose.build('conda-python-pandas') |
| 370 | |
| 371 | expected_calls = [ |
| 372 | "build --no-cache conda-cpp", |
| 373 | "build --no-cache conda-python", |
| 374 | "build --no-cache conda-python-pandas", |
| 375 | ] |
| 376 | with assert_compose_calls(compose, expected_calls): |
| 377 | compose.build('conda-python-pandas', use_cache=False) |
| 378 | |
| 379 | expected_calls = [ |
| 380 | "build conda-cpp", |
| 381 | "build conda-python", |
| 382 | "build --no-cache conda-python-pandas", |
| 383 | ] |
| 384 | with assert_compose_calls(compose, expected_calls): |
| 385 | compose.build('conda-python-pandas', use_cache=True, |
| 386 | use_leaf_cache=False) |
| 387 | |
| 388 | |
| 389 | @mock.patch.dict(os.environ, {"BUILDKIT_INLINE_CACHE": "1"}) |
nothing calls this directly
no test coverage detected