From: Michael Elsdoerfer Date: Fri, 8 Jan 2010 23:13:57 +0000 (+0100) Subject: Fixed test that broke with recent Django SVN trunk. Django now seems to strictly... X-Git-Tag: 0.2~29^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a732cc2bd502b478c51c49cab14af76f3c0fc597;p=django-tables2.git 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. --- 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'