Update to DJango 1.0 (hat tip: Amit Chakradeo (अमित चक्रदेव))
This commit is contained in:
parent
cc1118100b
commit
bc72bf572f
@ -19,6 +19,7 @@ def run(script, doc, output_file=None, options={}):
|
||||
# I need to re-import the settings at every call because I have to
|
||||
# set the TEMPLATE_DIRS variable programmatically
|
||||
from django.conf import settings
|
||||
settings._wrapped=None
|
||||
try:
|
||||
settings.configure(
|
||||
DEBUG=True, TEMPLATE_DEBUG=True,
|
||||
|
@ -24,7 +24,7 @@ class DjangoFilterTests(unittest.TestCase):
|
||||
input = feed.read(); feed.close()
|
||||
results = dj.run(
|
||||
os.path.realpath('tests/data/filter/django/title.html.dj'), input)
|
||||
self.assertEqual(results, "\xc2\xa1Atom-Powered Robots Run Amok!\n")
|
||||
self.assertEqual(results, u"\xa1Atom-Powered Robots Run Amok!\n")
|
||||
|
||||
def test_django_config_context(self):
|
||||
config.load('tests/data/filter/django/test.ini')
|
||||
|
Loading…
Reference in New Issue
Block a user