mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 14:57:59 -05:00
move image agnostic util to shared runtime util (#2859)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from opendevin.runtime.docker.image_agnostic_util import (
|
||||
from opendevin.runtime.utils.image_agnostic import (
|
||||
_get_new_image_name,
|
||||
generate_dockerfile_content,
|
||||
get_od_sandbox_image,
|
||||
@@ -31,8 +31,8 @@ def test_get_new_image_name():
|
||||
assert new_image_name == 'od_sandbox:ubuntu__latest'
|
||||
|
||||
|
||||
@patch('opendevin.runtime.docker.image_agnostic_util._build_sandbox_image')
|
||||
@patch('opendevin.runtime.docker.image_agnostic_util.docker.DockerClient')
|
||||
@patch('opendevin.runtime.utils.image_agnostic._build_sandbox_image')
|
||||
@patch('opendevin.runtime.utils.image_agnostic.docker.DockerClient')
|
||||
def test_get_od_sandbox_image(mock_docker_client, mock_build_sandbox_image):
|
||||
base_image = 'debian:11'
|
||||
mock_docker_client.images.list.return_value = [
|
||||
|
||||
Reference in New Issue
Block a user