Skip to content

Commit 05aff18

Browse files
committed
Tried to fix errors with assert calls for 'push_images' and 'cleanup'
1 parent 8d6978d commit 05aff18

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

tests/cli/test_build_images.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_run(
118118
images_to_push: list[str] = []
119119
for image in images:
120120
built_image = (
121-
f"{dst if dst else def_dst}/{image[0]}:{tags[0] if tags else def_tags[0]}"
121+
f"{dst if dst else def_dst}/{image}:{tags[0] if tags else def_tags[0]}"
122122
)
123123
built_images.append(built_image)
124124
images_to_push.append(built_image)
@@ -170,17 +170,11 @@ def test_run(
170170

171171
# Check that 'push_images' was called with the correct arguments
172172
mock_push.assert_called_once_with(
173-
call(
174-
images=images_to_push,
175-
dry_run=dry_run if dry_run else def_dry_run,
176-
),
177-
any_order=True,
173+
images=images_to_push,
174+
dry_run=dry_run if dry_run else def_dry_run,
178175
)
179176

180177
# Check that 'cleanup' was called correctly
181178
mock_clean.assert_called_once_with(
182-
call(
183-
dry_run=dry_run if dry_run else def_dry_run,
184-
),
185-
any_order=True,
179+
dry_run=dry_run if dry_run else def_dry_run,
186180
)

0 commit comments

Comments
 (0)