django/tests/utils_tests
Nick Pope ddf0002bb7 Refs #32948 -- Renamed Node._new_instance() to Node.create().
Node._new_instance() was added in
6dd2b5468f to work around Q.__init__()
having an incompatible signature with Node.__init__().

It was intended as a hook that could be overridden if subclasses needed
to change the behaviour of instantiation of their specialised form of
Node. In practice this doesn't ever seem to have been used for this
purpose and there are very few calls to Node._new_instance() with other
code, e.g. Node.__deepcopy__() calling Node and overriding __class__ as
required.

Rename this to Node.create() to make it a more "official" piece of
private API that we can use to simplify a lot of other areas internally.

The docstring and nearby comment have been reworded to read more
clearly.
2022-07-27 10:06:24 +02:00
..
archives Fixed #30160 -- Added support for LZMA and XZ templates to startapp/startproject management commands. 2019-07-31 10:02:13 +02:00
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 Refs #20094 -- Removed obsolete tests/utils_tests/test_itercompat.py 2017-04-26 10:54:06 -04:00
test_archive.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_autoreload.py Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
test_baseconv.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_connection.py Prevented initialization of unused database connections. 2022-03-17 07:40:57 +01:00
test_crypto.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_datastructures.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_dateformat.py Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
test_dateparse.py Refs #33173 -- Fixed test_dateparse tests on Python 3.11+. 2022-05-09 10:38:11 +02:00
test_datetime_safe.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01: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 #33173 -- Used locale.getlocale() instead of getdefaultlocale(). 2022-03-08 13:17:05 +01:00
test_feedgenerator.py Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
test_functional.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_hashable.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_html.py Fixed #33779 -- Allowed customizing encoder class in django.utils.html.json_script(). 2022-06-28 10:54:38 +02:00
test_http.py Updated vendored _urlsplit() to strip newline and tabs. 2022-07-01 08:48:38 +02:00
test_inspect.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_ipv6.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_jslex.py Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
test_lazyobject.py Refs #28358 -- Fixed infinite recursion in LazyObject.__getattribute__(). 2022-02-17 14:52:17 +01:00
test_lorem_ipsum.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_module_loading.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_no_submodule.py
test_numberformat.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01: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 #20296 -- Prevented mark_safe() from evaluating lazy objects. 2022-02-21 10:11:26 +01: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 #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
test_timesince.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_timezone.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_topological_sort.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +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