mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Fixed E128 flake8 warnings in tests/.
This commit is contained in:
parent
df8d8d4292
commit
92053acbb9
148 changed files with 2073 additions and 2248 deletions
|
@ -63,9 +63,10 @@ class MigrateSignalTests(TestCase):
|
|||
def test_pre_migrate_args(self):
|
||||
r = PreMigrateReceiver()
|
||||
signals.pre_migrate.connect(r, sender=APP_CONFIG)
|
||||
management.call_command('migrate', database=MIGRATE_DATABASE,
|
||||
verbosity=MIGRATE_VERBOSITY, interactive=MIGRATE_INTERACTIVE,
|
||||
stdout=six.StringIO())
|
||||
management.call_command(
|
||||
'migrate', database=MIGRATE_DATABASE, verbosity=MIGRATE_VERBOSITY,
|
||||
interactive=MIGRATE_INTERACTIVE, stdout=six.StringIO(),
|
||||
)
|
||||
|
||||
args = r.call_args
|
||||
self.assertEqual(r.call_counter, 1)
|
||||
|
@ -83,9 +84,10 @@ class MigrateSignalTests(TestCase):
|
|||
r = PreMigrateReceiver()
|
||||
signals.pre_migrate.connect(r, sender=APP_CONFIG)
|
||||
stdout = six.StringIO()
|
||||
management.call_command('migrate', database=MIGRATE_DATABASE,
|
||||
verbosity=MIGRATE_VERBOSITY, interactive=MIGRATE_INTERACTIVE,
|
||||
stdout=stdout)
|
||||
management.call_command(
|
||||
'migrate', database=MIGRATE_DATABASE, verbosity=MIGRATE_VERBOSITY,
|
||||
interactive=MIGRATE_INTERACTIVE, stdout=stdout,
|
||||
)
|
||||
args = r.call_args
|
||||
self.assertEqual(r.call_counter, 1)
|
||||
self.assertEqual(set(args), set(PRE_MIGRATE_ARGS))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue