PEP8 updates.
This commit is contained in:
@@ -1096,8 +1096,8 @@ THE SOFTWARE.
|
||||
level = 'INFO'
|
||||
|
||||
loggers = {}
|
||||
for app in apps.apps.get_app_configs():
|
||||
loggers[app.name] = {
|
||||
for project_app in apps.apps.get_app_configs():
|
||||
loggers[project_app.name] = {
|
||||
'handlers': ['console'],
|
||||
'propagate': True,
|
||||
'level': level,
|
||||
|
||||
@@ -10,8 +10,11 @@ class Command(management.BaseCommand):
|
||||
help = 'Run all configured tests for the project.'
|
||||
|
||||
option_list = management.BaseCommand.option_list + (
|
||||
make_option('--nomigrations', action='store_true', dest='nomigrations', default=False,
|
||||
help='Don\'t use migrations when creating the test database.'),
|
||||
make_option(
|
||||
'--nomigrations', action='store_true', dest='nomigrations',
|
||||
default=False,
|
||||
help='Don\'t use migrations when creating the test database.'
|
||||
),
|
||||
)
|
||||
|
||||
def handle(self, *args, **options):
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.files import File
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.test.client import Client
|
||||
from django.test import TestCase
|
||||
|
||||
Reference in New Issue
Block a user