From 204d88a3514922025a7e91f474d79837ac03979c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Thu, 21 Oct 2021 13:34:37 +0200 Subject: [PATCH] Add missing mock to osbs tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't want the test to try to a dummy URL. Signed-off-by: Lubomír Sedlář --- tests/test_osbs_phase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_osbs_phase.py b/tests/test_osbs_phase.py index 456fe1f6..5ad64d83 100644 --- a/tests/test_osbs_phase.py +++ b/tests/test_osbs_phase.py @@ -372,8 +372,9 @@ class OSBSThreadTest(helpers.PungiTestCase): ) as f: self.assertIn("baseurl=http://example.com/repo\n", f) + @mock.patch("pungi.phases.osbs.get_file_from_scm") @mock.patch("pungi.phases.osbs.kojiwrapper.KojiWrapper") - def test_run_with_extra_repos_with_cts(self, KojiWrapper): + def test_run_with_extra_repos_with_cts(self, KojiWrapper, get_file_from_scm): cfg = { "url": "git://example.com/repo?#BEEFCAFE", "target": "f24-docker-candidate",