Reuse helper in all tests
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
8d224b206b
commit
652987f2cc
3 changed files with 3 additions and 12 deletions
|
|
@ -11,7 +11,7 @@ import sys
|
|||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from pungi.phases.image_build import ImageBuildPhase, CreateImageBuildThread
|
||||
from tests.helpers import DummyCompose, PungiTestCase
|
||||
from tests.helpers import DummyCompose, PungiTestCase, boom
|
||||
|
||||
|
||||
class TestImageBuildPhase(PungiTestCase):
|
||||
|
|
@ -580,9 +580,6 @@ class TestCreateImageBuildThread(PungiTestCase):
|
|||
'scratch': False,
|
||||
}
|
||||
|
||||
def boom(*args, **kwargs):
|
||||
raise RuntimeError('BOOM')
|
||||
|
||||
koji_wrapper = KojiWrapper.return_value
|
||||
koji_wrapper.run_blocking_cmd.side_effect = boom
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue