[tests] mute QA and Security test function outputs
This commit is contained in:
@@ -4,7 +4,7 @@ sys.path.insert(0, '.')
|
||||
sys.path.insert(0, '../')
|
||||
import unittest
|
||||
import entropy.qa
|
||||
from entropy.output import TextInterface
|
||||
from entropy.output import TextInterface, set_mute
|
||||
import entropy.tools
|
||||
import tests._misc as _misc
|
||||
import tempfile
|
||||
@@ -21,8 +21,10 @@ class QATest(unittest.TestCase):
|
||||
_misc.get_test_entropy_package2(),
|
||||
_misc.get_test_entropy_package()
|
||||
]
|
||||
set_mute(True)
|
||||
for pkg in pkgs:
|
||||
self.assertTrue(self.QA.entropy_package_checks(pkg))
|
||||
set_mute(False)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
@@ -9,6 +9,7 @@ import unittest
|
||||
import tempfile
|
||||
import shutil
|
||||
from entropy.const import etpConst
|
||||
from entropy.output import set_mute
|
||||
from entropy.client.interfaces import Client
|
||||
from entropy.security import Repository, System
|
||||
import entropy.tools
|
||||
@@ -78,7 +79,9 @@ class SecurityTest(unittest.TestCase):
|
||||
self.assertEqual(meta, {})
|
||||
|
||||
def test_security_fetch_advisories(self):
|
||||
set_mute(True)
|
||||
s_rc = self._system.sync()
|
||||
set_mute(False)
|
||||
self.assertEqual(s_rc, 0)
|
||||
self.assertEqual(self._system.check_advisories_availability(), True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user