Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevented running some admin_view tests twice.

  • Loading branch information...
commit 7c0b72a826a3637b30a57553ac83f6b913c33134 1 parent 534ced5
@timgraham timgraham authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/admin_views/tests.py
View
5 tests/admin_views/tests.py
@@ -57,7 +57,7 @@
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
-class AdminViewBasicTest(TestCase):
+class AdminViewBasicTestCase(TestCase):
fixtures = ['admin-views-users.xml', 'admin-views-colors.xml',
'admin-views-fabrics.xml', 'admin-views-books.xml']
@@ -92,6 +92,7 @@ def assertContentBefore(self, response, text1, text2, failing_msg=None):
failing_msg
)
+class AdminViewBasicTest(AdminViewBasicTestCase):
def testTrailingSlashRequired(self):
"""
If you leave off the trailing slash, app should redirect and add it.
@@ -761,7 +762,7 @@ def test_save_as_display(self):
self.assertEqual(response.context['form_url'], '/test_admin/admin/admin_views/person/add/')
-class CustomModelAdminTest(AdminViewBasicTest):
+class CustomModelAdminTest(AdminViewBasicTestCase):
urls = "admin_views.urls"
urlbit = "admin2"
Please sign in to comment.
Something went wrong with that request. Please try again.