summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_datastructures.py
Commit message (Collapse)AuthorAgeFilesLines
* Completed test coverage for django.utils.datastructures.Marcelo Galigniana2023-02-151-0/+5
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-127/+144
|
* Refs #24121 -- Added __repr__() to OrderedSet.Nick Pope2021-03-101-0/+4
|
* Fixed #32517 -- Made OrderedSet reversible.Diego Lima2021-03-081-1/+6
| | | | Refs #32516.
* Updated MultiValueDict.update() to mirror dict.update() behavior.Nick Pope2020-10-301-0/+29
| | | | | | | | | | | | Changes in behavior include: - Accepting iteration over empty sequences, updating nothing. - Accepting iterable of 2-tuples providing key-value pairs. - Failing with the same or comparable exceptions for invalid input. Notably this replaces the previous attempt to catch TypeError which was unreachable as the call to .items() resulted in AttributeError on non-dict objects.
* Increased test coverage for django.utils.datastructures.MultiValueDict.Nick Pope2020-10-301-24/+78
| | | | Co-authored-by: Mads Jensen <mje@inducks.org>
* Increased test coverage for django.utils.datastructures.OrderedSet.Mads Jensen2020-10-301-0/+26
| | | | Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
* Used assertRaisesMessage() in various tests.Hasan Ramezani2020-02-071-2/+1
|
* Removed unneeded list() calls in sorted() argument.Sergey Fedoseev2019-02-091-1/+1
|
* Fixed #20147 -- Added HttpRequest.headers.Santiago Basulto2019-01-161-2/+81
|
* Used 4 space hanging indent for dictionaries.Tim Graham2019-01-021-9/+2
| | | Thanks Mariusz Felisiak for auditing.
* Fixed #28249 -- Removed unnecessary dict.keys() calls.Jon Dufresne2017-05-271-2/+2
| | | iter(dict) is equivalent to iter(dict.keys()).
* Fixed #28064 -- Removed double-quoting of key names in MultiValueDictKeyError.petedmarsh2017-04-111-1/+2
|
* Refs #23919 -- Removed most of remaining six usageClaude Paroz2017-01-181-7/+5
| | | | Thanks Tim Graham for the review.
* Fixed #27583 -- Fixed MultiValueDict.getlist() crash when values for key is ↵Mariusz Felisiak2016-12-091-0/+5
| | | | | None. Restored the behavior before 727d7ce6cba21363470aaefb2dc5353017531be3.
* Fixed #27198 -- Made MultiValueDict.getlist() return a new list to prevent ↵Jani Tiainen2016-09-161-0/+18
| | | | mutation.
* Fixed #26747 -- Used more specific assertions in the Django test suite.Jon Dufresne2016-06-161-1/+1
|
* Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as ↵Hasan2016-01-291-2/+2
| | | | appropriate.
* Refs #26022 -- Used context manager version of assertRaisesMessage in tests.Hasan2016-01-291-4/+4
|
* Fixed #26125 -- Fixed E731 flake warnings.userimack2016-01-251-1/+2
|
* Fixed #25093 -- Added utils.datastructures.OrderedSet.__len__()darkryder2015-07-091-0/+8
|
* Removed redundant list() calls.Tim Graham2015-05-161-3/+3
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+4
|
* Removed django.utils.datastructures.SortedDict per deprecation timeline.Tim Graham2015-01-171-129/+2
|
* Removed django.utils.datastructures.MergeDict per deprecation timeline; refs ↵Tim Graham2015-01-171-72/+1
| | | | #18659.
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-4/+6
|
* Fixed #23620 -- Used more specific assertions in the Django test suite.Berker Peksag2014-11-031-1/+1
|
* Fixed #23664 -- Provided a consistent definition for OrderedSet.__bool__Thomas Chaumeny2014-10-161-1/+11
| | | | This also defines QuerySet.__bool__ for consistency though this should not have any consequence as bool(qs) used to fallback on QuerySet.__len__ in Py3.
* Fixed #22338 -- Fixed a test dependent on dictionary key iteration order.Tim Graham2014-03-301-1/+1
|
* Advanced deprecation warnings for 1.8.Aymeric Augustin2014-03-221-3/+3
|
* Fixed E127 pep8 warnings.Loic Bistuer2013-12-141-14/+22
|
* Fix all violators of E231Alex Gaynor2013-10-261-7/+7
|
* Removed unused local variables in tests.Tim Graham2013-10-191-2/+0
|
* Fixed #18659 -- Deprecated request.REQUEST and MergeDictBouke Haarsma2013-10-171-1/+1
| | | | Thanks Aymeric Augustin for the suggestion.
* Fixed #15625 -- Made message in MultiValueDictKeyError less verbose.Tim Graham2013-09-181-5/+1
| | | | Thanks margieroginski for the suggestion.
* Silenced deprecation warnings in SortedDict tests; refs [07876cf02b]Tim Graham2013-09-031-1/+3
|
* Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin2013-09-021-1/+1
|
* Removed insert(), value_for_insert() SortedDict methods deprecated in Django ↵Ramiro Morales2013-06-281-15/+0
| | | | 1.5.
* Fixed #20321 -- Added missing key name in MergeDict KeyError messageClaude Paroz2013-04-261-0/+8
| | | | Thanks mark.harviston et gmail.com for the report.
* Fixed #20276 -- Implemented __bool__ for MergeDictAnton Baklanov2013-04-191-0/+7
| | | | | MergeDict evaluates now to False if all contained dicts are empty. Thanks til for the report and the initial patch.
* Modified utils_tests for unittest2 discovery.Preston Timmons2013-04-121-0/+306