Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/decorators
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25611 -- Standardized descriptor signatures.Tim Graham2015-10-261-3/+3
|
* Fixed #25269 -- Allowed method_decorator() to accept a ↵fabrizio ettore messina2015-09-191-8/+73
| | | | list/tuple of decorators.
* Fixed #25146 -- Allowed method_decorator() to decorate ↵Rigel Di Scala2015-08-011-1/+50
| | | | classes.
* Fixed #13008 -- Added more Cache-Control headers to ↵Markus Bertheau2015-04-281-0/+12
| | | | never_cache() decorator.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-7/+15
|
* Removed django.utils.functional.memoize per deprecation ↵Tim Graham2015-01-171-7/+1
| | | | | | timeline. refs #21351.
* Fixed #23923 -- Promoted Django's deprecation warnings ↵Tim Graham2014-11-291-1/+2
| | | | to errors in runtests.py
* Fixed #21247 -- Made method_decorator play nicely with ↵Marc Tamlyn2014-02-091-1/+37
| | | | | | | | | | descriptors 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.
* Removed unused imports + other flake8 fixes.Tim Graham2014-02-091-1/+2
|
* Merge pull request #1997 from ↵Marc Tamlyn2014-02-091-1/+21
|\ | | | | | | | | dpwrussell/method_decorator_args_fix Used available_attrs in method_decorator
| * Fixed #21513 -- Added method_decorator support for ↵dpwrussell2014-01-101-1/+21
| | | | | | | | | | | | | | | | argumented decorator 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.
* | Removed superfluous models.py files.Aymeric Augustin2013-12-171-1/+0
|/ | | | | | | 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.
* Fixed #21351 -- Replaced memoize with Python's lru_cache.Bouke Haarsma2013-11-111-1/+5
| | | | | | | | | | 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.
* PEP8Jason Myers2013-11-031-1/+2
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fix all violators of E231Alex Gaynor2013-10-261-1/+1
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+1
|
* Fixed #21270 -- Fixed E701 pep8 warningsAlasdair Nicol2013-10-171-2/+5
|
* Whitespace cleanup.Tim Graham2013-10-101-1/+0
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+1
| | | | Refs #20680.
* Use assertIsInstance in tests.Marc Tamlyn2013-05-211-5/+5
| | | | Gives much nicer errors when it fails.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+252