summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_lazyobject.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #28358 -- Fixed infinite recursion in LazyObject.__getattribute__().Matthias Kestenholz2022-02-171-0/+8
| | | | | | | Regression in 97d7990abde3fe4b525ae83958fd0b52d6a1d13f. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Theo Alexiou <theofilosalexiou@gmail.com>
* Fixed #28358 -- Prevented LazyObject from mimicking nonexistent attributes.Theo Alexiou2022-02-161-0/+22
| | | | Thanks Sergey Fedoseev for the initial patch.
* Fixed #26287 -- Added support for addition operations to SimpleLazyObject.Theo Alexiou2022-02-101-0/+11
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-1/+2
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-66/+74
|
* Fixed #29772 -- Made LazyObject proxy __lt__() and __gt__().Javier Buzzi2018-09-191-0/+10
|
* Refs #28389 -- Added release note and test for pickling of LazyObject when ↵Sergey Fedoseev2017-07-121-0/+2
| | | | | | wrapped object doesn't have __reduce__(). Forwardport of 30f334cc58e939c7d9bd8455c80bd066fbde9f2b from stable/1.11.x
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-3/+4
|
* Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette2017-01-191-3/+3
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-2/+1
| | | | Thanks Tim Graham for the review.
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-1/+1
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #27463 -- Fixed E741 flake8 warnings.Ramin Farajpour Cami2016-11-141-10/+10
|
* Made miscellaneous code cleanupsDmitry Dygalo2016-07-211-2/+1
|
* Fixed #26122 -- Fixed copying a LazyObjectBen Kraft2016-01-261-7/+78
| | | | | | Shallow copying of `django.utils.functional.LazyObject` or its subclasses has been broken in a couple of different ways in the past, most recently due to 35355a4.
* Fixed #25389 -- Fixed pickling a SimpleLazyObject wrapping a model.Ben Kraft2015-10-031-0/+92
| | | | | | Pickling a `SimpleLazyObject` wrapping a model did not work correctly; in particular it did not add the `_django_version` attribute added in 42736ac8. Now it will handle this and other custom `__reduce__` methods correctly.
* Fixed #23838 -- added missing `__iter__` to LazyObjectRik2015-03-081-5/+16
|
* Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag2014-11-031-6/+6
|
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny2014-09-291-1/+1
| | | | Thanks Collin Anderson for the review.
* Fixed a deprecation warning on Python 3.Tim Graham2014-03-271-1/+1
|
* Fixed #21840 -- Moved dunder methods from SimpleLazyObject to LazyObject.Baptiste Mispelon2014-03-131-0/+275
This commit also added tests for LazyObject and refactored the testsuite of SimpleLazyObject so that it can share test cases with LazyObject.