Skip to content

Commit

Permalink
[copr-dist-git] removed test/build dependency on running docker daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
clime committed Sep 17, 2016
1 parent 982148e commit b501ca1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion dist-git/tests/test_dist_git_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ def mc_post():
yield handle


@pytest.yield_fixture
def mc_vm():
with mock.patch("{}.VM".format(MODULE_REF)) as handle:
yield handle


@pytest.yield_fixture
def mc_urlretrieve():
with mock.patch("{}.urlretrieve".format(MODULE_REF)) as handle:
Expand Down Expand Up @@ -322,7 +328,7 @@ def test_do_import(self, mc_SourceProvider):
mc.side_effect = None

@patch("dist_git.dist_git_importer.Worker")
def test_run(self, WorkerMock, mc_time):
def test_run(self, WorkerMock, mc_time, mc_vm):
self.dgi.try_to_obtain_new_tasks = MagicMock()
self.dgi.do_import = MagicMock()

Expand Down

0 comments on commit b501ca1

Please sign in to comment.