From 32fa46ad85d05891f3d8a87e9ccd51f3dcfb56d0 Mon Sep 17 00:00:00 2001 From: Miroslav Shubernetskiy Date: Fri, 28 Jul 2017 11:27:57 -0400 Subject: [PATCH] fixing removed assert_has_call from py36 --- tests/test_multinosetests.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tests/test_multinosetests.py b/tests/test_multinosetests.py index c80dcbc..97d6006 100644 --- a/tests/test_multinosetests.py +++ b/tests/test_multinosetests.py @@ -179,15 +179,13 @@ def test_merge_calls(self, mock.call(nose.xunit_file), mock.call('nosetests.xml'), ]) - mock_status_print_report.assert_has_call( - 'Test suite report', - mock_get_tests_xml_report.return_value, - nose - ) - mock_status_print_report.assert_has_call( - 'Overall test suite report', - mock_get_tests_xml_report.return_value, - ) + mock_status_print_report.assert_has_calls([ + mock.call('Test suite report', + mock_get_tests_xml_report.return_value, + nose), + mock.call('Overall test suite report', + mock_get_tests_xml_report.return_value,) + ]) class TestUtils(unittest.TestCase):