1
0
mirror of https://github.com/django/django.git synced 2024-12-22 09:05:43 +00:00
django/tests/utils_tests
Nick Pope 07fa79ef2b Refs #31262 -- Added __eq__() and __getitem__() to BaseChoiceIterator.
This makes it easier to work with lazy iterators used for callables,
etc. when extracting items or comparing to lists, e.g. during testing.

Also added `BaseChoiceIterator.__iter__()` to make it clear that
subclasses must implement this and added `__all__` to the module.

Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Natalia Bidart <124304+nessita@users.noreply.github.com>
2023-10-23 13:44:16 -03:00
..
archives
eggs
files
test_module
traversal_archives
__init__.py
deconstructible_classes.py
models.py
test_archive.py
test_autoreload.py Fixed #34787 -- Fixed autoreloader crash when run from installed script on Windows. 2023-08-28 12:57:14 +02:00
test_choices.py Refs #31262 -- Added __eq__() and __getitem__() to BaseChoiceIterator. 2023-10-23 13:44:16 -03:00
test_connection.py
test_crypto.py
test_datastructures.py
test_dateformat.py
test_dateparse.py
test_deconstruct.py
test_decorators.py
test_duration.py
test_encoding.py Fixed CVE-2023-41164 -- Fixed potential DoS in django.utils.encoding.uri_to_iri(). 2023-09-04 11:58:37 +02:00
test_feedgenerator.py
test_functional.py Allowed custom formatting of lazy() objects. 2023-06-12 06:09:20 +02:00
test_hashable.py
test_html.py
test_http.py Refs #30116 -- Simplified tests related with dictionary order. 2023-07-12 11:06:59 +02:00
test_inspect.py
test_ipv6.py
test_jslex.py
test_lazyobject.py Fixed utils_tests.test_lazyobject.SimpleLazyObjectPickleTestCase. 2023-08-20 16:09:07 +02:00
test_lorem_ipsum.py
test_module_loading.py
test_no_submodule.py
test_numberformat.py
test_os_utils.py
test_regex_helper.py
test_safestring.py
test_simplelazyobject.py
test_termcolors.py
test_text.py Fixed CVE-2023-43665 -- Mitigated potential DoS in django.utils.text.Truncator when truncating HTML text. 2023-10-04 09:22:26 -03:00
test_timesince.py
test_timezone.py
test_tree.py
utils.py