Add missing mock to osbs tests
We don't want the test to try to a dummy URL. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
8133676270
commit
204d88a351
@ -372,8 +372,9 @@ class OSBSThreadTest(helpers.PungiTestCase):
|
|||||||
) as f:
|
) as f:
|
||||||
self.assertIn("baseurl=http://example.com/repo\n", 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")
|
@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 = {
|
cfg = {
|
||||||
"url": "git://example.com/repo?#BEEFCAFE",
|
"url": "git://example.com/repo?#BEEFCAFE",
|
||||||
"target": "f24-docker-candidate",
|
"target": "f24-docker-candidate",
|
||||||
|
Loading…
Reference in New Issue
Block a user