Update dependencies, fix tests
- replace assertTrue(mock.called_with(...)) with mock.assert_called_with
This commit is contained in:
parent
f3ef40df0b
commit
38b120b03e
6 changed files with 516 additions and 452 deletions
|
@ -119,13 +119,13 @@ class ActivationChangeMixinTest(TestCase):
|
|||
querysetmock = Mock()
|
||||
activationchange = ActivationChangeMixin()
|
||||
activationchange.activate(Mock(), querysetmock)
|
||||
querysetmock.update.called_with(active=True)
|
||||
querysetmock.update.assert_called_with(active=True)
|
||||
|
||||
def test_deactivate(self):
|
||||
querysetmock = Mock()
|
||||
activationchange = ActivationChangeMixin()
|
||||
activationchange.deactivate(Mock(), querysetmock)
|
||||
querysetmock.update.called_with(active=False)
|
||||
querysetmock.update.assert_called_with(active=False)
|
||||
|
||||
|
||||
class MailBoxAdminTest(CustomerTestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue