summaryrefslogtreecommitdiff
path: root/tests/decorators
AgeCommit message (Collapse)Author
2018-06-27Refs #29253 -- Fixed method_decorator() crash if decorator sets a new attribute.Chris Jerdonek
Regression in fdc936c9130cf4fb5d59869674b9a31cc79a7999.
2018-04-16Fixed #29253 -- Made method_decorator(list) copy attributes.Chris Jerdonek
2018-04-16Updated decorators test to use subTest().Chris Jerdonek
2017-02-03Fixed spelling of "nonexistent".Tim Graham
2017-01-21Refs #23919 -- Removed misc references to Python 2.Tim Graham
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-17Refs #20223 -- Removed deprecated django.utils.functional.allow_lazy().Tim Graham
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-11-10Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.za
2016-06-16Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne
2016-06-07Fixed #10107 -- Allowed using mark_safe() as a decorator.Scott Vitale
Thanks ArcTanSusan for the initial patch.
2015-12-12Fixed #20223 -- Added keep_lazy() as a replacement for allow_lazy().Iacopo Spalletti
Thanks to bmispelon and uruz for the initial patch.
2015-10-26Fixed #25611 -- Standardized descriptor signatures.Tim Graham
2015-09-18Fixed #25269 -- Allowed method_decorator() to accept a list/tuple of decorators.fabrizio ettore messina
2015-08-01Fixed #25146 -- Allowed method_decorator() to decorate classes.Rigel Di Scala
2015-04-28Fixed #13008 -- Added more Cache-Control headers to never_cache() decorator.Markus Bertheau
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-17Removed django.utils.functional.memoize per deprecation timeline.Tim Graham
refs #21351.
2014-11-29Fixed #23923 -- Promoted Django's deprecation warnings to errors in runtests.pyTim Graham
2014-02-09Fixed #21247 -- Made method_decorator play nicely with descriptorsMarc Tamlyn
When a method decorator was used in conjunction with a decorator implemented as a descriptor, method_decorator did not correctly respect the method binding. Thanks for Graham Dumpleton for the report and initial patch.
2014-02-09Removed unused imports + other flake8 fixes.Tim Graham
2014-02-09Merge pull request #1997 from dpwrussell/method_decorator_args_fixMarc Tamlyn
Used available_attrs in method_decorator
2014-01-10Fixed #21513 -- Added method_decorator support for argumented decoratordpwrussell
Copied attributes into the decorated method and special case __name__ copy as this will not be present on a Class object. Added regression test to decorator suite.
2013-12-17Removed superfluous models.py files.Aymeric Augustin
Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
2013-11-11Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma
Replaced the custom, untested memoize with a similar decorator from Python's 3.2 stdlib. Although some minor performance degradation (see ticket), it is expected that in the long run lru_cache will outperform memoize once it is implemented in C. Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of replacing memoize with lru_cache.
2013-11-02PEP8Jason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-26Fix all violators of E231Alex Gaynor
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-10-17Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol
2013-10-10Whitespace cleanup.Tim Graham
* Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
2013-07-01Stopped using django.utils.unittest in the test suite.Aymeric Augustin
Refs #20680.
2013-05-21Use assertIsInstance in tests.Marc Tamlyn
Gives much nicer errors when it fails.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner