MCPcopy Create free account
hub / github.com/apache/arrow / test_compose_build

Function test_compose_build

dev/archery/archery/docker/tests/test_docker.py:348–386  ·  view source on GitHub ↗
(arrow_compose_path)

Source from the content-addressed store, hash-verified

346
347
348def 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"})

Callers

nothing calls this directly

Calls 3

buildMethod · 0.95
DockerComposeClass · 0.90
assert_compose_callsFunction · 0.85

Tested by

no test coverage detected