mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #24685 -- Fixed check for template name unicity.
Thanks Preston Timmons for the report.
This commit is contained in:
parent
db0a0c4b8a
commit
1563b897c4
2 changed files with 12 additions and 1 deletions
|
@ -35,3 +35,12 @@ class TemplateStringsTests(SimpleTestCase):
|
|||
engines.all()
|
||||
with self.assertRaises(ImproperlyConfigured):
|
||||
engines.all()
|
||||
|
||||
@override_settings(TEMPLATES=[{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
}, {
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
}])
|
||||
def test_backend_names_must_be_unique(self):
|
||||
with self.assertRaises(ImproperlyConfigured):
|
||||
engines.all()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue