summaryrefslogtreecommitdiff
path: root/tests/template_tests/test_context.py
AgeCommit message (Collapse)Author
2024-11-18Refs #35844 -- Fixed copying BaseContext and its subclasses on Python 3.14+.Mariusz Felisiak
super objects are copyable on Python 3.14+: https://github.com/python/cpython/commit/5ca4e34bc1aab8321911aac6d5b2b9e75ff764d8 and can no longer be used in BaseContext.__copy__().
2024-06-13Fixed #35417 -- Updated BaseContext.new() with values to create a context ↵George Y. Kussumoto
that can be flattened.
2023-03-29Fixed #34427 -- Improved error message when context processor does not ↵David Sanders
return a dict.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2019-10-01Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU
implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically.
2019-02-21Fixed typos in tests/template_tests/test_context.py.Tim Graham
2018-11-27Made reused RequestFactory instances class attributes.Simon Charette
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26263 -- Removed deprecated Context.has_key().Tim Graham
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-08-09Fixed #26830 -- Prevented the 'with' templatetag from resetting the cycle ↵Alexander Schrijver
variable to its initial state.
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-02-23Fixed #26263 -- Deprecated Context.has_key()Tim Graham
2015-09-11Fixed #24765 -- Allowed template context updates to flatten a Context.Buddy Lindsey, Jr
2015-05-27Fixed #24847 -- Prevented items set on a RequestContext from being lost.Paweł Marczewski
2015-04-20Updated template tests to create their own engine.Preston Timmons
This continues work to treat Django templates as a library.
2015-04-14Fixed #24603 -- Allowed Context.update() to be used as a context manager.Tommy Beadle
2015-03-16Fixed #24493 -- Added BaseContext.setdefault()Preston Timmons
2015-02-24Moved RequestContextTests into test_context.Preston Timmons
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-05Fixed #24273 -- Allowed copying RequestContext more than once.Aymeric Augustin
Thanks Collin Anderson for the report.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-02-16Made the new template.Context.flatten() method a public API.Marek Wywiał
That method was introduced in 9db4271bd11ac23a5a5652bbcdf8fb6d4b997651. Refs #21765.
2014-02-15Fixed bad comparison logic introduced in ↵Baptiste Mispelon
d97bf2e9c8971764690caaf81a0914bc368d6b02. Refs #21765. Thanks to kezabelle for the quick report and to onjin for providing the patch.
2014-02-15Fixed #21765 -- Added support for comparing Context instancesMarek Wywiał
2013-12-20Fixed #21639 -- Implemented RenderContext.__getitem__Alex Hill
It's now consistent with RenderContext.get.
2013-08-12Fixed #17778 -- Prevented class attributes on context from resolving as ↵Tim Graham
template variables. Thanks KyleMac for the report, regebro for the patch, and Aymeric for the test.
2013-07-17Allowed Context.push to behave as a context mananger.Curtis Maloney
Thanks Loic Bistuer for the review.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-04-12Modified template_tests for unittest2 discovery.Preston Timmons