We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3b33c2 commit c2ac907Copy full SHA for c2ac907
tests/cli/test_build_images.py
@@ -80,15 +80,18 @@ def test_run(
80
# Assign it to the CLI to pass to the function
81
sys.argv = build_cmd
82
83
- # Mock 'build_image' return value
+ # Mock the check for the existence of the Dockerfiles
84
+ mock_exists.return_value = True
85
+
86
+ # Mock the exit code of the subprocesses being run
87
+ mock_subprocess.return_value = 0
88
89
+ # Mock 'build_image' return values
90
mock_build.side_effect = [
91
f"{dst if dst else def_dst}/{image[0]}:{tags[0] if tags else def_tags[0]}"
92
for image in images
93
]
94
- # Mock the check for the existence of the Dockerfiles
- mock_exists.return_value = True
-
95
# Run the function with the command
96
run()
97
0 commit comments