mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Made miscellaneous code cleanups
This commit is contained in:
parent
a05d86a69a
commit
ca32979cdc
6 changed files with 11 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue