Skip to content

Commit 5d45b2d

Browse files
committed
More fixes to test logic for 'tag_image' call count
1 parent c69a790 commit 5d45b2d

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
@@ -153,8 +153,8 @@ def test_run(
153153
mock_build.assert_has_calls(expected_build_calls, any_order=True)
154154

155155
# Check that 'tag_image' was called with the correct arguments
156-
if other_tags:
157-
assert mock_tag.call_count == len(built_images)
156+
if tags[1:]:
157+
assert mock_tag.call_count == len(tags[1:])
158158
expected_tag_calls = (
159159
call(
160160
image_path=image,

0 commit comments

Comments
 (0)