Replace assert_called_once and assert_called by assert_called_once_with
This commit is contained in:
1 parent
6cbdce5741
commit
a0100b7c2b
1 file changed
+1
-4
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user