summaryrefslogtreecommitdiff
path: root/tests/admin_views
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-11 11:45:18 -0400
committerTim Graham <timograham@gmail.com>2014-06-11 11:48:57 -0400
commit45e47f7b95aad98d91bb40e19dda14ae120980a4 (patch)
treeed3c93e8531bf4880b00677ba64685a635694a8e /tests/admin_views
parent7bd2ad1dd9fc449ed1b4832fab5c975d7c8aa895 (diff)
[1.7.x] Fixed #22653 -- Added some database feature flags to tests.
Thanks Rahul Priyadarshi. Backport of 99f5ea9cc8 from master
Diffstat (limited to 'tests/admin_views')
-rw-r--r--tests/admin_views/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index 7187232d84..f8bfcf82c5 100644
--- a/tests/admin_views/tests.py
+++ b/tests/admin_views/tests.py
@@ -28,7 +28,7 @@ from django.contrib.auth.models import Group, User, Permission
from django.contrib.contenttypes.models import ContentType
from django.forms.utils import ErrorList
from django.template.response import TemplateResponse
-from django.test import TestCase
+from django.test import TestCase, skipUnlessDBFeature
from django.test.utils import patch_logger
from django.test import override_settings
from django.utils import formats
@@ -1527,6 +1527,7 @@ class AdminViewsNoUrlTest(TestCase):
self.client.get('/test_admin/admin/logout/')
+@skipUnlessDBFeature('can_defer_constraint_checks')
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))
class AdminViewDeletedObjectsTest(TestCase):
urls = "admin_views.urls"