mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
PEP8 cleanup
Signed-off-by: Jason Myers <jason@jasonamyers.com>
This commit is contained in:
parent
0fdb692c6c
commit
7a61c68c50
128 changed files with 739 additions and 206 deletions
|
@ -289,6 +289,7 @@ class DjangoAdminDefaultSettings(AdminScriptTestCase):
|
|||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, "EXECUTE:NoArgsCommand")
|
||||
|
||||
|
||||
class DjangoAdminFullPathDefaultSettings(AdminScriptTestCase):
|
||||
"""A series of tests for django-admin.py when using a settings.py file that
|
||||
contains the test application specified using a full path.
|
||||
|
@ -355,6 +356,7 @@ class DjangoAdminFullPathDefaultSettings(AdminScriptTestCase):
|
|||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, "EXECUTE:NoArgsCommand")
|
||||
|
||||
|
||||
class DjangoAdminMinimalSettings(AdminScriptTestCase):
|
||||
"""A series of tests for django-admin.py when using a settings.py file that
|
||||
doesn't contain the test application.
|
||||
|
@ -421,6 +423,7 @@ class DjangoAdminMinimalSettings(AdminScriptTestCase):
|
|||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, "Unknown command: 'noargs_command'")
|
||||
|
||||
|
||||
class DjangoAdminAlternateSettings(AdminScriptTestCase):
|
||||
"""A series of tests for django-admin.py when using a settings file
|
||||
with a name other than 'settings.py'.
|
||||
|
@ -796,6 +799,7 @@ class ManageFullPathDefaultSettings(AdminScriptTestCase):
|
|||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, "EXECUTE:NoArgsCommand")
|
||||
|
||||
|
||||
class ManageMinimalSettings(AdminScriptTestCase):
|
||||
"""A series of tests for manage.py when using a settings.py file that
|
||||
doesn't contain the test application.
|
||||
|
@ -862,6 +866,7 @@ class ManageMinimalSettings(AdminScriptTestCase):
|
|||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, "Unknown command: 'noargs_command'")
|
||||
|
||||
|
||||
class ManageAlternateSettings(AdminScriptTestCase):
|
||||
"""A series of tests for manage.py when using a settings file
|
||||
with a name other than 'settings.py'.
|
||||
|
@ -1121,6 +1126,7 @@ class CustomTestRunner(DiscoverRunner):
|
|||
def run_tests(self, test_labels, extra_tests=None, **kwargs):
|
||||
pass
|
||||
|
||||
|
||||
class ManageTestCommand(AdminScriptTestCase):
|
||||
def setUp(self):
|
||||
from django.core.management.commands.test import Command as TestCommand
|
||||
|
@ -1214,6 +1220,7 @@ class ManageRunserver(AdminScriptTestCase):
|
|||
self.cmd.handle(addrport="deadbeef:7654")
|
||||
self.assertServerSettings('deadbeef', '7654')
|
||||
|
||||
|
||||
class ManageRunserverEmptyAllowedHosts(AdminScriptTestCase):
|
||||
def setUp(self):
|
||||
self.write_settings('settings.py', sdict={
|
||||
|
@ -1464,6 +1471,7 @@ class CommandTypes(AdminScriptTestCase):
|
|||
self.assertOutput(out, str_prefix("EXECUTE:LabelCommand label=testlabel, options=[('no_color', False), ('pythonpath', None), ('settings', None), ('traceback', None), ('verbosity', %(_)s'1')]"))
|
||||
self.assertOutput(out, str_prefix("EXECUTE:LabelCommand label=anotherlabel, options=[('no_color', False), ('pythonpath', None), ('settings', None), ('traceback', None), ('verbosity', %(_)s'1')]"))
|
||||
|
||||
|
||||
class ArgumentOrder(AdminScriptTestCase):
|
||||
"""Tests for 2-stage argument parsing scheme.
|
||||
|
||||
|
@ -1751,6 +1759,7 @@ class DiffSettings(AdminScriptTestCase):
|
|||
self.assertNoOutput(err)
|
||||
self.assertOutput(out, "### STATIC_URL = None")
|
||||
|
||||
|
||||
class Dumpdata(AdminScriptTestCase):
|
||||
"""Tests for dumpdata management command."""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue