Update to DJango 1.0 (hat tip: Amit Chakradeo (अमित चक्रदेव))

This commit is contained in:
Sam Ruby 2010-05-20 15:38:19 -04:00
parent cc1118100b
commit bc72bf572f
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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')