From 6f758270706c13c80bed5ef837dfb1cb4f5c26b8 Mon Sep 17 00:00:00 2001 From: clime Date: Jan 16 2016 14:12:10 +0000 Subject: [dist-git] fixed do_import test --- diff --git a/dist-git/tests/test_dist_git_importer.py b/dist-git/tests/test_dist_git_importer.py index 9f35726..bef43c6 100644 --- a/dist-git/tests/test_dist_git_importer.py +++ b/dist-git/tests/test_dist_git_importer.py @@ -40,8 +40,8 @@ def mc_time(): @pytest.yield_fixture -def mc_do_srpm_fetch(): - with mock.patch("{}.do_srpm_fetch".format(MODULE_REF)) as handle: +def mc_SourceProvider(): + with mock.patch("{}.SourceProvider".format(MODULE_REF)) as handle: yield handle @@ -286,9 +286,8 @@ class TestDistGitImporter(object): self.dgi.post_back_safe(dd) assert mc_post.called - def test_do_import(self, mc_do_srpm_fetch): + def test_do_import(self, mc_SourceProvider): internal_methods = [ - # "fetch_srpm", "pkg_name_evr", "before_git_import", "git_import_srpm",