- Fix unittests
This commit is contained in:
		
							parent
							
								
									a6174f0909
								
							
						
					
					
						commit
						0485a8eee5
					
				| @ -137,6 +137,21 @@ class PkgsetCompareMixin(object): | |||||||
| @mock.patch("pungi.phases.pkgset.pkgsets.ReaderPool", new=FakePool) | @mock.patch("pungi.phases.pkgset.pkgsets.ReaderPool", new=FakePool) | ||||||
| @mock.patch("kobo.pkgset.FileCache", new=MockFileCache) | @mock.patch("kobo.pkgset.FileCache", new=MockFileCache) | ||||||
| class TestKojiPkgset(PkgsetCompareMixin, helpers.PungiTestCase): | 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): |     def setUp(self): | ||||||
|         super(TestKojiPkgset, self).setUp() |         super(TestKojiPkgset, self).setUp() | ||||||
|         with open(os.path.join(helpers.FIXTURE_DIR, "tagged-rpms.json")) as f: |         with open(os.path.join(helpers.FIXTURE_DIR, "tagged-rpms.json")) as f: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user