Skip to content

Commit

Permalink
Switch BindMount -> CreatedBindMount
Browse files Browse the repository at this point in the history
As the spack tests are heavily copying pytest_container internals, we have to
use a new class now as BindMount doesn't expose the `cli_arg` property anymore.
  • Loading branch information
dcermak committed Oct 30, 2024
1 parent 56b8134 commit 397534d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_spack.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
import pytest
from _pytest.config import Config
from pytest_container import MultiStageBuild
from pytest_container.container import BindMount
from pytest_container.container import DerivedContainer
from pytest_container.container import ImageFormat
from pytest_container.container import container_and_marks_from_pytest_param
from pytest_container.helpers import get_extra_build_args
from pytest_container.helpers import get_extra_run_args
from pytest_container.volume import CreatedBindMount

from bci_tester.data import BASE_CONTAINER
from bci_tester.data import SPACK_CONTAINERS
Expand Down Expand Up @@ -60,7 +60,7 @@ def test_spack(
)
)
# mount spack.yaml into container (/root)
mount_arg = BindMount(
mount_arg = CreatedBindMount(
host_path=tmp_path / "spack.yaml",
container_path="/root/spack.yaml",
).cli_arg
Expand Down

0 comments on commit 397534d

Please sign in to comment.