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
|
# I need to re-import the settings at every call because I have to
|
||||||
# set the TEMPLATE_DIRS variable programmatically
|
# set the TEMPLATE_DIRS variable programmatically
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
settings._wrapped=None
|
||||||
try:
|
try:
|
||||||
settings.configure(
|
settings.configure(
|
||||||
DEBUG=True, TEMPLATE_DEBUG=True,
|
DEBUG=True, TEMPLATE_DEBUG=True,
|
||||||
|
@ -24,7 +24,7 @@ class DjangoFilterTests(unittest.TestCase):
|
|||||||
input = feed.read(); feed.close()
|
input = feed.read(); feed.close()
|
||||||
results = dj.run(
|
results = dj.run(
|
||||||
os.path.realpath('tests/data/filter/django/title.html.dj'), input)
|
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):
|
def test_django_config_context(self):
|
||||||
config.load('tests/data/filter/django/test.ini')
|
config.load('tests/data/filter/django/test.ini')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user