From 0485a8eee56ec01d6690fdb5fa1d2216e1acbd69 Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Tue, 8 Nov 2022 00:36:44 +0200 Subject: [PATCH] - Fix unittests --- tests/test_pkgset_pkgsets.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/test_pkgset_pkgsets.py b/tests/test_pkgset_pkgsets.py index cc59f5bf..94d566a2 100644 --- a/tests/test_pkgset_pkgsets.py +++ b/tests/test_pkgset_pkgsets.py @@ -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: