Add test for materialized pkgset

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-08-02 10:30:09 +02:00
parent 63a8b7b6c9
commit 465ecf229c
5 changed files with 133 additions and 16 deletions

View file

@ -15,12 +15,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), ".."))
from pungi import Modulemd
from pungi.phases import init
from tests.helpers import DummyCompose, PungiTestCase, touch, mk_boom
def fake_run_in_threads(func, params, threads=None):
for num, param in enumerate(params):
func(None, param, num)
from tests.helpers import DummyCompose, PungiTestCase, touch, mk_boom, fake_run_in_threads
@mock.patch("pungi.phases.init.run_in_threads", new=fake_run_in_threads)