Replace assert_called_once and assert_called by assert_called_once_with

This commit is contained in:
Cédric Krier committed 2020-10-13 08:43:29 +02:00
1 parent 6cbdce5741
commit a0100b7c2b
1 file changed
+1 -4
+1 -4
View File
@@ -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):