changeset 797f220ed7a4 in modules/web_shop_vue_storefront:default
details: 
https://hg.tryton.org/modules/web_shop_vue_storefront?cmd=changeset;node=797f220ed7a4
description:
        Fallback to assert_called when assert_called_once does not exist
diffstat:

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

diffs (15 lines):

diff -r f09ce17625e0 -r 797f220ed7a4 tests/test_web_shop_vue_storefront.py
--- a/tests/test_web_shop_vue_storefront.py     Mon Oct 12 22:55:16 2020 +0200
+++ b/tests/test_web_shop_vue_storefront.py     Mon Oct 12 23:24:55 2020 +0200
@@ -211,7 +211,10 @@
                         })
 
             self.assertFalse(result)
-            reset_password.assert_called_once()
+            try:
+                reset_password.assert_called_once()
+            except AttributeError:
+                reset_password.assert_called()
 
     @with_transaction(user=0)
     def test_user_change_password(self):

Reply via email to