mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Isolated template tests from Django settings.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from ..utils import render, setup
|
||||
from ..utils import setup
|
||||
|
||||
|
||||
multiline_string = """
|
||||
@@ -17,5 +17,5 @@ class MultilineTests(SimpleTestCase):
|
||||
|
||||
@setup({'multiline01': multiline_string})
|
||||
def test_multiline01(self):
|
||||
output = render('multiline01')
|
||||
output = self.engine.render_to_string('multiline01')
|
||||
self.assertEqual(output, multiline_string)
|
||||
|
||||
Reference in New Issue
Block a user