Made miscellaneous code cleanups

This commit is contained in:
Dmitry Dygalo 2016-07-21 10:28:40 +02:00 committed by Markus Holtermann
parent a05d86a69a
commit ca32979cdc
No known key found for this signature in database
GPG key ID: AFE79D68D41C7E39
6 changed files with 11 additions and 12 deletions

View file

@ -19,7 +19,7 @@ class Receiver(object):
signal.connect(self, sender=APP_CONFIG)
def __call__(self, signal, sender, **kwargs):
self.call_counter = self.call_counter + 1
self.call_counter += 1
self.call_args = kwargs
@ -39,7 +39,7 @@ class OneTimeReceiver(object):
# Although test runner calls migrate for several databases,
# testing for only one of them is quite sufficient.
if kwargs['using'] == MIGRATE_DATABASE:
self.call_counter = self.call_counter + 1
self.call_counter += 1
self.call_args = kwargs
# we need to test only one call of migrate
self.signal.disconnect(self, sender=APP_CONFIG)