From 7bcfce2e1a4a048d24bccbb6b802db964daf6f2c Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Tue, 6 Nov 2018 13:00:22 -0800 Subject: [PATCH] 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 --- tests/test_check.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_check.py b/tests/test_check.py index fe3652e..1320f91 100644 --- a/tests/test_check.py +++ b/tests/test_check.py @@ -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'