mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 00:24:15 +02:00
tests: cleaning up some warnings
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import warnings
|
||||
from unittest import TestCase
|
||||
from unittest.mock import Mock
|
||||
|
||||
@@ -7,6 +8,10 @@ from bauh.gems.arch.model import ArchPackage
|
||||
|
||||
class ArchDataMapperTest(TestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
warnings.filterwarnings('ignore')
|
||||
|
||||
def test_check_version_update(self):
|
||||
self.assertTrue(AURDataMapper.check_version_update('1.0.0-1', '1.0.0-2'))
|
||||
self.assertFalse(AURDataMapper.check_version_update('1.0.0-2', '1.0.0-1'))
|
||||
|
||||
Reference in New Issue
Block a user