Skip to content

Commit 7dcf8a7

Browse files
authored
Merge branch 'main' into am/schema
2 parents a3e6d27 + c3542c7 commit 7dcf8a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_docker_image_cache_manager.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,3 +299,11 @@ def test_check_docker_image_accessibility_with_enroot(mock_tempdir, mock_which,
299299
command = mock_popen.call_args[0][0]
300300
assert "enroot import -o" in command
301301
assert "docker://docker.io/hello-world" in command
302+
303+
304+
def test_docker_image_path_is_always_absolute():
305+
r = DockerImageCacheResult(True, Path("relative/path"), "message")
306+
assert r.docker_image_path.is_absolute()
307+
308+
r.docker_image_path = Path("another/relative/path")
309+
assert r.docker_image_path.is_absolute()

0 commit comments

Comments
 (0)