mirror of
https://github.com/django/django.git
synced 2025-10-10 02:22:22 +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
|
@ -129,6 +129,7 @@ class GenericAdminViewTest(TestCase):
|
|||
formset = inline_formset(instance=e)
|
||||
self.assertTrue(formset.get_queryset().ordered)
|
||||
|
||||
|
||||
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
|
||||
class GenericInlineAdminParametersTest(TestCase):
|
||||
urls = "generic_inline_admin.urls"
|
||||
|
@ -210,6 +211,7 @@ class GenericInlineAdminWithUniqueTogetherTest(TestCase):
|
|||
response = self.client.post('/generic_inline_admin/admin/generic_inline_admin/contact/add/', post_data)
|
||||
self.assertEqual(response.status_code, 302) # redirect somewhere
|
||||
|
||||
|
||||
class NoInlineDeletionTest(TestCase):
|
||||
urls = "generic_inline_admin.urls"
|
||||
|
||||
|
@ -224,6 +226,7 @@ class NoInlineDeletionTest(TestCase):
|
|||
class MockRequest(object):
|
||||
pass
|
||||
|
||||
|
||||
class MockSuperUser(object):
|
||||
def has_perm(self, perm):
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue