mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Merge pull request #271 from felixxm/br-closing-slash
Fixed TestAdmin.test_linebreaks() due to linebreaksbr() behavior change on Django 2.1.
This commit is contained in:
commit
9a2d39a2e8
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ from django.contrib import admin
|
|||
from django.contrib.auth.models import User, Permission
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.core.exceptions import PermissionDenied
|
||||
from django.template.defaultfilters import linebreaksbr
|
||||
from django.test import TestCase, RequestFactory
|
||||
from django.utils import six
|
||||
|
||||
|
|
@ -59,7 +60,7 @@ class TestAdmin(TestCase):
|
|||
request.user = self.superuser
|
||||
response = self.options.changelist_view(request, {})
|
||||
self.assertContains(response, 'LINEBREAK_VALUE')
|
||||
self.assertContains(response, 'eggs<br />eggs')
|
||||
self.assertContains(response, linebreaksbr('eggs\neggs'))
|
||||
|
||||
@mock.patch('constance.settings.CONFIG_FIELDSETS', {
|
||||
'Numbers': ('LONG_VALUE', 'INT_VALUE',),
|
||||
|
|
|
|||
Loading…
Reference in a new issue