Skip to content

Commit

Permalink
fix issue ploigos#117 - Tests fail when skopeo is not installed on lo…
Browse files Browse the repository at this point in the history
…cal machine - set create=True for mocking skopeo
  • Loading branch information
itewk committed Mar 22, 2021
1 parent 1d42c5d commit e3b8100
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test__required_config_or_result_keys(self):
]
self.assertEqual(required_keys, expected_required_keys)

@patch.object(sh, 'skopeo')
@patch.object(sh, 'skopeo', create=True)
def test_run_step_pass(self, skopeo_mock):
with TempDirectory() as temp_dir:
results_dir_path = os.path.join(temp_dir.path, 'step-runner-results')
Expand Down Expand Up @@ -135,7 +135,7 @@ def test_run_step_pass(self, skopeo_mock):
_tee='err'
)

@patch.object(sh, 'skopeo')
@patch.object(sh, 'skopeo', create=True)
def test_run_step_fail_run_skopeo(self, skopeo_mock):
with TempDirectory() as temp_dir:
results_dir_path = os.path.join(temp_dir.path, 'step-runner-results')
Expand Down

0 comments on commit e3b8100

Please sign in to comment.