Source: django-tables Version: 1.2.0-1 Severity: serious Tags: buster sid https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/django-tables.html
... dh_auto_test -- --system=custom --test-args="{interpreter} /usr/bin/py.test" dh_auto_test: Compatibility levels before 9 are deprecated (level 7 in use) I: pybuild base:184: python2.7 /usr/bin/py.test ============================= test session starts ============================== platform linux2 -- Python 2.7.13, pytest-3.0.6, py-1.4.34, pluggy-0.4.0 django settings: tests.app.settings (from ini file) rootdir: /build/1st/django-tables-1.2.0, inifile: tox.ini plugins: django-2.9.1 collected 178 items tests/test_config.py ...... tests/test_core.py ................................. tests/test_models.py .................... tests/test_rows.py .. tests/test_templates.py ........ tests/test_templatetags.py ......... tests/test_utils.py .................... tests/test_views.py ....... tests/columns/test_booleancolumn.py ....... tests/columns/test_checkboxcolumn.py ..... tests/columns/test_datecolumn.py .... tests/columns/test_datetimecolumn.py .... tests/columns/test_emailcolumn.py .... tests/columns/test_filecolumn.py .... tests/columns/test_general.py ...................... tests/columns/test_linkcolumn.py ............ tests/columns/test_templatecolumn.py F.... tests/columns/test_timecolumn.py .. tests/columns/test_urlcolumn.py .... =================================== FAILURES =================================== _____________________ test_should_handle_context_on_table ______________________ def test_should_handle_context_on_table(): class TestTable(tables.Table): col_code = tables.TemplateColumn(template_code='code:{{ record.col }}{{ STATIC_URL }}') col_name = tables.TemplateColumn(template_name='test_template_column.html') table = TestTable([{'col': 'brad'}]) assert table.rows[0].get_cell('col_code') == 'code:brad' > assert table.rows[0].get_cell('col_name') == 'name:brad' tests/columns/test_templatecolumn.py:17: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ django_tables2/rows.py:150: in get_cell return self._call_render(bound_column, value) django_tables2/rows.py:170: in _call_render return bound_column.render(**kwargs) django_tables2/columns/templatecolumn.py:71: in render return template.render(context) /usr/lib/python2.7/dist-packages/django/template/backends/django.py:64: in render context = make_context(context, request, autoescape=self.backend.engine.autoescape) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ context = [{'False': False, 'None': None, 'True': True}], request = None kwargs = {'autoescape': True} def make_context(context, request=None, **kwargs): """ Create a suitable Context from a plain dict and optionally an HttpRequest. """ if context is not None and not isinstance(context, dict): > raise TypeError('context must be a dict rather than %s.' % > context.__class__.__name__) E TypeError: context must be a dict rather than Context. /usr/lib/python2.7/dist-packages/django/template/context.py:287: TypeError ===================== 1 failed, 177 passed in 2.44 seconds ===================== E: pybuild pybuild:283: test: plugin custom failed with: exit code=1: python2.7 /usr/bin/py.test dh_auto_test: pybuild --test -i python{version} -p 2.7 --system=custom --test-args={interpreter} /usr/bin/py.test returned exit code 13 debian/rules:21: recipe for target 'override_dh_auto_test' failed make[1]: *** [override_dh_auto_test] Error 25