Skip to content

Commit 336ea0b

Browse files
committed
Fixed logic when building tags for the mock return value to pass to next function
1 parent 4e8927f commit 336ea0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/cli/test_build_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_run(
9292
)
9393
for flag, value in flags:
9494
if isinstance(value, list) and value:
95-
build_cmd.extend([flag, " ".join(value)])
95+
build_cmd.extend([flag, *value])
9696
if isinstance(value, str) and value:
9797
build_cmd.extend([flag, value])
9898
if isinstance(value, bool) and value:
@@ -118,7 +118,7 @@ def test_run(
118118
built_images.append(built_image)
119119
images_to_push.append(built_image)
120120
for tag in (tags if tags else def_tags)[1:]:
121-
new_tag = f"{image.split(':')[0]}:{tag}"
121+
new_tag = f"{built_image.split(':')[0]}:{tag}"
122122
other_tags.append(new_tag)
123123
images_to_push.append(new_tag)
124124

0 commit comments

Comments
 (0)