diff options
Diffstat (limited to 'tests/admin_checks')
| -rw-r--r-- | tests/admin_checks/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py index 799fc2899a..1e9b6f4646 100644 --- a/tests/admin_checks/tests.py +++ b/tests/admin_checks/tests.py @@ -8,6 +8,7 @@ from django.contrib.contenttypes.admin import GenericStackedInline from django.core import checks from django.core.exceptions import ImproperlyConfigured from django.test import TestCase +from django.test.utils import override_settings from .models import Song, Book, Album, TwoAlbumFKAndAnE, City, State, Influence @@ -34,6 +35,10 @@ class ValidFormFieldsets(admin.ModelAdmin): ) +@override_settings( + SILENCED_SYSTEM_CHECKS=['fields.W342'], # ForeignKey(unique=True) + INSTALLED_APPS=['django.contrib.auth', 'django.contrib.contenttypes', 'admin_checks'] +) class SystemChecksTestCase(TestCase): def test_checks_are_performed(self): |
