From fbd44618dcc842b0014c6ac47cba453e3df58e45 Mon Sep 17 00:00:00 2001 From: Tobias Witek Date: Sun, 26 Jan 2020 14:17:14 +0100 Subject: [PATCH] [test] Python 3.5 compatibility Use assert_called_once_with() instead of assert_called_once() to maintain compatibility with Python 3.5 --- tests/core/test_widget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/core/test_widget.py b/tests/core/test_widget.py index 3d300c4..011e09b 100644 --- a/tests/core/test_widget.py +++ b/tests/core/test_widget.py @@ -28,11 +28,11 @@ class widget(unittest.TestCase): def test_callable_fulltext(self): newWidget = core.widget.Widget(full_text=self.someCallback) self.assertEqual(newWidget.full_text(), self.callbackReturnValue) - self.someCallback.assert_called_once() + self.someCallback.assert_called_once_with(unittest.mock.ANY) def test_set_callable_fulltext(self): self.someWidget.full_text(self.someCallback) self.assertEqual(self.someWidget.full_text(), self.callbackReturnValue) - self.someCallback.assert_called_once() + self.someCallback.assert_called_once_with(unittest.mock.ANY) # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4