django/tests/utils_tests
Simon Charette 57307bbc7d Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly.
Over the years we've had multiple instances of hit and misses when
emitting warnings: either setting the wrong stacklevel or not setting
it at all.

This work adds assertions for the existing warnings that were declaring
the correct stacklevel, but were lacking tests for it.
2024-08-28 11:44:05 -03:00
..
archives
eggs
files Rewrote strip_tags test file to lorem ipsum. 2022-03-08 14:50:06 +01:00
test_module Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
traversal_archives Fixed CVE-2021-3281 -- Fixed potential directory-traversal via archive.extract(). 2021-02-01 09:07:36 +01:00
__init__.py
deconstructible_classes.py Refs #21275 -- Added more tests for @deconstructible decorator. 2022-01-04 13:08:36 +01:00
models.py
test_archive.py Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
test_autoreload.py Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
test_choices.py Refs #34899 -- Extracted Field.flatchoices to flatten_choices helper function. 2023-10-23 13:44:23 -03:00
test_connection.py Prevented initialization of unused database connections. 2022-03-17 07:40:57 +01:00
test_crypto.py Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_datastructures.py Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
test_dateformat.py Used enterClassContext() where appropriate. 2024-01-04 05:55:29 +01:00
test_dateparse.py Fixed #35097 -- Tested parse_datetime() with bare date. 2024-01-09 14:08:03 -03:00
test_deconstruct.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_decorators.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_duration.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_encoding.py Refs #34986 -- Fixed some test assertions for PyPy. 2023-11-28 06:19:38 +01:00
test_feedgenerator.py Fixed #12978 -- Added support for RSS feed stylesheets. 2024-06-18 17:25:43 +02:00
test_functional.py Allowed custom formatting of lazy() objects. 2023-06-12 06:09:20 +02:00
test_hashable.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_html.py Refs #34609 -- Fixed deprecation warning stack level in format_html(). 2024-08-27 15:14:50 -03:00
test_http.py Refs #34986 -- Fixed mocking in utils_tests.test_http.HttpDateProcessingTests.test_parsing_rfc850. 2023-11-28 06:19:38 +01:00
test_inspect.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_ipv6.py Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
test_itercompat.py Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
test_jslex.py Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
test_lazyobject.py Fixed utils_tests.test_lazyobject.SimpleLazyObjectPickleTestCase. 2023-08-20 16:09:07 +02:00
test_lorem_ipsum.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_module_loading.py Fixed #34233 -- Dropped support for Python 3.8 and 3.9. 2023-01-18 09:46:01 +01:00
test_no_submodule.py
test_numberformat.py Refs #34000 -- Optimized handling None values in numberformat.format(). 2022-09-12 13:02:50 +02:00
test_os_utils.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_regex_helper.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_safestring.py Fixed #35648 -- Raised NotImplementedError in SafeString.__add__ for non-string RHS. 2024-08-12 14:25:05 -03:00
test_simplelazyobject.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_termcolors.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_text.py Refs CVE-2024-27351 -- Forwardported release notes and tests. 2024-03-04 08:22:00 +01:00
test_timesince.py Refs #34483 -- Fixed timesince()/timeuntil() with timezone-aware dates on different days and interval less than 1 day. 2023-04-14 17:41:03 +02:00
test_timezone.py Fixed #34233 -- Dropped support for Python 3.8 and 3.9. 2023-01-18 09:46:01 +01:00
test_tree.py Refs #32948 -- Renamed Node._new_instance() to Node.create(). 2022-07-27 10:06:24 +02:00
utils.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00