changeset 2db15ebd1ace in modules/web_shop_vue_storefront:default
details: 
https://hg.tryton.org/modules/web_shop_vue_storefront?cmd=changeset;node=2db15ebd1ace
description:
        Replace assert_called_once and assert_called by assert_called_once_with
diffstat:

 tests/test_web_shop_vue_storefront.py |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (15 lines):

diff -r 797f220ed7a4 -r 2db15ebd1ace tests/test_web_shop_vue_storefront.py
--- a/tests/test_web_shop_vue_storefront.py     Mon Oct 12 23:24:55 2020 +0200
+++ b/tests/test_web_shop_vue_storefront.py     Tue Oct 13 08:43:29 2020 +0200
@@ -211,10 +211,7 @@
                         })
 
             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):

Reply via email to