From a732cc2bd502b478c51c49cab14af76f3c0fc597 Mon Sep 17 00:00:00 2001 From: Michael Elsdoerfer Date: Sat, 9 Jan 2010 00:13:57 +0100 Subject: [PATCH] Fixed test that broke with recent Django SVN trunk. Django now seems to strictly require Template.render() to be called with a Context, dict doesn't work anymore. With this commit, all the tests pass with the latest Django trunk. --- tests/test_templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_templates.py b/tests/test_templates.py index bc304e6..8ac15b7 100644 --- a/tests/test_templates.py +++ b/tests/test_templates.py @@ -106,4 +106,4 @@ def test_templatetags(): f2 = tables.Column() t = Template('{% set_url_param x=table.order_by %}') table = MyTable([], order_by=('f1', 'f2')) - assert t.render({'request': HttpRequest(), 'table': table}) == '?x=f1%2Cf2' + assert t.render(Context({'request': HttpRequest(), 'table': table})) == '?x=f1%2Cf2' -- 2.26.2