From a0100b7c2b50e0d00ff25102434967fe6873b033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 13 Oct 2020 08:43:29 +0200 Subject: [PATCH] Replace assert_called_once and assert_called by assert_called_once_with --- tests/test_web_shop_vue_storefront.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/test_web_shop_vue_storefront.py b/tests/test_web_shop_vue_storefront.py index cc0e0cf61e..1990af05bc 100644 --- a/tests/test_web_shop_vue_storefront.py +++ b/tests/test_web_shop_vue_storefront.py @@ -211,10 +211,7 @@ class WebVueStorefrontTestCase(ModuleTestCase): }) self.assertFalse(result) - try: - reset_password.assert_called_once() - except AttributeError: - reset_password.assert_called() + reset_password.assert_called_once_with(ANY) @with_transaction(user=0) def test_user_change_password(self):