diff options
author | Radostin Stoyanov <rstoyanov1@gmail.com> | 2018-04-10 16:04:35 +0100 |
---|---|---|
committer | Radostin Stoyanov <rstoyanov1@gmail.com> | 2018-04-10 17:26:57 +0100 |
commit | 2e6b7d7c9a0ee17d3e47262ecd0d5a887ed2b177 (patch) | |
tree | a7b944771dc99e763efd551a8fc86437bd716635 /tests/docker_source.py | |
parent | 516b65749d722f04a260344aa9e6475b22609d27 (diff) | |
download | virt-bootstrap.git-2e6b7d7c9a0ee17d3e47262ecd0d5a887ed2b177.tar.gz virt-bootstrap.git-2e6b7d7c9a0ee17d3e47262ecd0d5a887ed2b177.tar.xz virt-bootstrap.git-2e6b7d7c9a0ee17d3e47262ecd0d5a887ed2b177.zip |
tests: docker_source: Mock out is_installed()
Commit b38f588 (source-docker: Show error if skopeo not installed)
introduced a check used by Docker-souce to verify that skopeo is
installed. However, the unit test cases in TestDockerSource do not
aim to ensure that skopeo is installed and therefore this check is
redundant.
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
Diffstat (limited to 'tests/docker_source.py')
-rw-r--r-- | tests/docker_source.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/docker_source.py b/tests/docker_source.py index a921bb8..7f3c783 100644 --- a/tests/docker_source.py +++ b/tests/docker_source.py @@ -317,10 +317,12 @@ class TestDockerSource(unittest.TestCase): """ with mock.patch.multiple('virtBootstrap.utils', get_image_details=mock.DEFAULT, + is_installed=mock.DEFAULT, get_image_dir=mock.DEFAULT) as m_utils: m_utils['get_image_details'].return_value = manifest m_utils['get_image_dir'].return_value = '/images_path' + m_utils['is_installed'].return_value = True patch_method = 'virtBootstrap.sources.DockerSource.gen_valid_uri' with mock.patch(patch_method) as m_uri: |