mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-21 06:26:18 +00:00
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:
committed by
William Douglas
parent
e0f0bd098d
commit
7bcfce2e1a
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user