1
0
mirror of https://github.com/django/django.git synced 2025-03-31 19:46:42 +00:00
Aymeric Augustin a3e783fe11 Deprecated passing a Context to a generic Template.render.
A deprecation path is required because the return type of
django.template.loader.get_template changed during the
multiple template engines refactor.

test_csrf_token_in_404 was incorrect: it tested the case when the
hardcoded template was rendered, and that template doesn't depend on the
CSRF token. This commit makes it test the case when a custom template is
rendered.
2015-01-12 21:01:34 +01:00
..
2014-10-22 21:21:02 -04:00
2013-12-24 12:25:17 +01:00
2014-08-18 13:44:10 -04:00
2013-11-02 23:50:49 -05:00
2013-11-02 23:50:49 -05:00
2014-12-06 12:06:06 -05:00
2013-12-24 12:25:17 +01:00

To run the test suite::

    $ cd tests
    $ pip install -r requirements/py3.txt  # or py2.txt
    $ PYTHONPATH=..:$PYTHONPATH ./runtests.py

For more information about the test suite, see
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.