tests: properly restore count.parse_log() in check.py tests

This fixes the new count.py test failures introduced by test reordering,
a side effect from the test.py -> check.py renaming.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2018-11-06 13:00:22 -08:00
committed by William Douglas
parent e0f0bd098d
commit 7bcfce2e1a
+4
View File
@@ -45,6 +45,8 @@ class TestTest(unittest.TestCase):
with patch(open_name, m_open, create=True):
check.check_regression('pkgdir')
check.count.parse_log = parse_log_backup
exp_call = unittest.mock.call().write('Total : 120\n'
'Pass : 100\n'
'Fail : 20\n'
@@ -66,6 +68,8 @@ class TestTest(unittest.TestCase):
with patch(open_name, m_open, create=True):
check.check_regression('pkgdir')
check.count.parse_log = parse_log_backup
exp_call = unittest.mock.call().write('Package : test-a\n'
'Total : 120\n'
'Pass : 100\n'