tests: cleaning up some warnings

This commit is contained in:
Vinicius Moreira
2021-06-17 17:31:09 -03:00
parent 476a30c9f4
commit 37ec3d96f4
2 changed files with 10 additions and 0 deletions

View File

@@ -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'))