Exemplo n.º 1
0
 def test_get_mounts(self):
     assert (get_mounts(
         use_auth_context=False,
         use_artifacts_context=False,
         use_docker_context=False,
         use_shm_context=False,
     ) == [])
     assert get_mounts(
         use_auth_context=True,
         use_artifacts_context=True,
         use_docker_context=True,
         use_shm_context=True,
     ) == [
         get_auth_context_mount(read_only=True),
         get_artifacts_context_mount(read_only=False),
         get_docker_context_mount(),
         get_shm_context_mount(),
     ]
Exemplo n.º 2
0
 def test_get_shm_context_mount(self):
     mount = get_shm_context_mount()
     assert mount.name == constants.CONTEXT_VOLUME_SHM
     assert mount.mount_path == CONTEXT_MOUNT_SHM
     assert mount.read_only is None