- Fix unittests
This commit is contained in:
parent
5ef9ed889a
commit
7040563081
@ -137,6 +137,21 @@ class PkgsetCompareMixin(object):
|
||||
@mock.patch("pungi.phases.pkgset.pkgsets.ReaderPool", new=FakePool)
|
||||
@mock.patch("kobo.pkgset.FileCache", new=MockFileCache)
|
||||
class TestKojiPkgset(PkgsetCompareMixin, helpers.PungiTestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls) -> None:
|
||||
|
||||
cls.patcher = mock.patch.object(
|
||||
pkgsets.KojiMockPackageSet,
|
||||
'_is_rpm_signed',
|
||||
return_value=True,
|
||||
)
|
||||
cls.patcher.start()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls) -> None:
|
||||
cls.patcher.stop()
|
||||
|
||||
def setUp(self):
|
||||
super(TestKojiPkgset, self).setUp()
|
||||
with open(os.path.join(helpers.FIXTURE_DIR, "tagged-rpms.json")) as f:
|
||||
|
Loading…
Reference in New Issue
Block a user