Skip to content

Commit

Permalink
test: mocked Singularity pull
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Dec 20, 2021
1 parent f908608 commit a5cc4ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,6 @@ def side_effect(cmd):

tmpdir = tempfile.mkdtemp()
singularity_filename = os.path.join(tmpdir, 'subdir-1', 'subdir-2', 'test.sif')
image.convert_docker_image_to_singularity('hello-world', singularity_filename=singularity_filename)
with mock.patch('subprocess.check_call', side_effect=side_effect):
image.convert_docker_image_to_singularity('hello-world', singularity_filename=singularity_filename)
shutil.rmtree(tmpdir)

0 comments on commit a5cc4ed

Please sign in to comment.