1
0
mirror of https://github.com/django/django.git synced 2024-12-27 19:46:22 +00:00
django/tests
Mariusz Felisiak 9c51b4dcfa [4.2.x] Fixed CVE-2023-41164 -- Fixed potential DoS in django.utils.encoding.uri_to_iri().
Thanks MProgrammer (https://hackerone.com/mprogrammer) for the report.

Co-authored-by: nessita <124304+nessita@users.noreply.github.com>
2023-09-04 12:05:35 +02:00
..
absolute_url_overrides
admin_autodiscover
admin_changelist [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
admin_checks
admin_custom_urls
admin_default_site
admin_docs [4.2.x] Fixed #34286 -- Fixed admindocs markups for case-sensitive template/view names. 2023-02-02 14:48:10 +01:00
admin_filters
admin_inlines [4.2.x] Fixed #34383 -- Fixed layout of admin fieldsets with multiple fields on the same line. 2023-03-28 05:35:28 +02:00
admin_ordering
admin_registration
admin_scripts [4.2.x] Fixed #32813 -- Made runserver display port after binding. 2023-02-10 09:55:35 +01:00
admin_utils [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
admin_views [4.2.x] Fixed #34512 -- Restored breadcrumbs on admin app index view. 2023-04-26 08:37:30 +02:00
admin_widgets [4.2.x] Fixed #34645 -- Restored alignment for admin date/time timezone warnings. 2023-06-09 21:37:50 +02:00
aggregation [4.2.x] Fixed #34750 -- Fixed QuerySet.count() when grouping by unused multi-valued annotations. 2023-08-01 16:17:06 +02:00
aggregation_regress Fixed #34176 -- Fixed grouping by ambiguous aliases. 2023-01-09 10:52:51 +01:00
annotations [4.2.x] Fixed #34254 -- Fixed return value of Exists() with empty queryset. 2023-01-26 20:25:18 +01:00
app_loading
apps
asgi [4.2.x] Fixed #34428 -- Made ASGIStaticFilesHandler adapt response to async iterator. 2023-03-21 20:52:59 +01:00
async Refs #34118 -- Adopted asgiref coroutine detection shims. 2022-12-20 11:10:48 +01:00
auth_tests [4.2.x] Fixed #34438 -- Reallowed extending UserCreationForm. 2023-03-28 12:48:25 +02:00
backends [4.2.x] Fixed #34486 -- Fixed DatabaseOperations.compose_sql() crash with no existing database connection on PostgreSQL. 2023-04-14 11:02:47 +02:00
base
bash_completion
basic [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
builtin_server Fixed #33865 -- Optimized LimitedStream wrapper. 2023-01-05 19:26:56 +01:00
bulk_create Fixed #34171 -- Fixed QuerySet.bulk_create() on fields with db_column in unique_fields/update_fields. 2022-11-22 14:47:21 +01:00
cache [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
check_framework
conditional_processing Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
constraints [4.2.x] Fixed #34754 -- Fixed JSONField check constraints validation on NULL values. 2023-08-04 10:58:53 +02:00
contenttypes_tests [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
context_processors
csrf_tests [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
custom_columns
custom_lookups
custom_managers
custom_methods
custom_migration_operations
custom_pk
datatypes
dates
datetimes
db_functions [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
db_typecasts
db_utils Fixed #33308 -- Added support for psycopg version 3. 2022-12-15 06:17:57 +01:00
dbshell
decorators
defer [4.2.x] Fixed #34458 -- Fixed QuerySet.defer() crash on attribute names. 2023-04-05 06:06:03 +02:00
defer_regress [4.2.x] Fixed #34612 -- Fixed QuerySet.only() crash on reverse relationships. 2023-06-01 20:27:06 +01:00
delete Fixed random delete.tests.DeletionTests.test_deletion_order failures. 2022-12-30 12:22:30 +01:00
delete_regress [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
deprecation [4.2.x] Fixed #34773 -- Fixed syncing DEFAULT_FILE_STORAGE/STATICFILES_STORAGE settings with STORAGES. 2023-08-18 18:12:30 +02:00
dispatch
distinct_on_fields
empty
empty_models
expressions [4.2.x] Fixed #34803 -- Fixed queryset crash when filtering againts deeply nested OuterRef annotations. 2023-09-01 11:25:00 +02:00
expressions_case
expressions_window [4.2.x] Fixed #34368 -- Made subquery raise NotSupportedError when referencing outer window expression. 2023-02-27 09:46:30 +01:00
extra_regress
field_deconstruction
field_defaults
field_subclassing
file_storage [4.2.x] Fixed #34192 -- Preserved callable storage when it returns default_storage. 2023-01-23 11:14:57 +01:00
file_uploads Refs #26029 -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings. 2023-01-12 09:58:36 +01:00
files Fixed #29027 -- Fixed file_move_safe() crash when moving files with SELinux. 2022-10-24 13:54:51 +02:00
filtered_relation
fixtures [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
fixtures_model_package
fixtures_regress [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
flatpages_tests
force_insert_update
foreign_object [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
forms_tests [4.2.x] Fixed CVE-2023-36053 -- Prevented potential ReDoS in EmailValidator and URLValidator. 2023-07-03 08:19:23 +02:00
from_db_value
generic_inline_admin
generic_relations Fixed #34135 -- Added async-compatible interface to related managers. 2022-11-09 10:32:40 +01:00
generic_relations_regress Fixed #26261 -- Fixed queryset crash when excluding reverse GenericRelation. 2022-11-18 10:13:31 +01:00
generic_views [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
get_earliest_or_latest
get_object_or_404
get_or_create [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
gis_tests [4.2.x] Fixed #34302 -- Fixed SpatialReference.srid for objects without top-level authority. 2023-02-17 19:57:41 +01:00
handlers [4.2.x] Fixed #34342, Refs #33735 -- Fixed test client handling of async streaming responses. 2023-02-17 11:48:59 +01:00
httpwrappers Fixed #33735 -- Added async support to StreamingHttpResponse. 2022-12-22 10:41:12 +01:00
humanize_tests Fixed #33879 -- Improved timesince handling of long intervals. 2023-01-04 11:14:06 +01:00
i18n [4.2.x] Fixed #34515 -- Made LocaleMiddleware prefer language from paths when i18n patterns are used. 2023-05-02 06:33:23 +02:00
import_error_package
indexes [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
inline_formsets
inspectdb Fixed #14094 -- Added support for unlimited CharField on PostgreSQL. 2022-12-28 12:31:04 +01:00
introspection [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
invalid_models_tests [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
known_related_objects [4.2.x] Fixed #34227 -- Fixed QuerySet.select_related() with multi-level FilteredRelation. 2023-01-24 10:52:01 +01:00
logging_tests Refs #34074 -- Used headers argument for RequestFactory and Client in docs and tests. 2023-01-04 09:11:36 +01:00
lookup [4.2.x] Fixed #34544 -- Avoided DBMS_LOB.SUBSTR() wrapping with IS NULL condition on Oracle. 2023-05-08 19:35:20 +02:00
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_regress
m2m_signals
m2m_through
m2m_through_regress
m2o_recursive
mail Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
managers_regress
many_to_many
many_to_one
many_to_one_null
max_lengths
messages_tests
middleware [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
middleware_exceptions [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
migrate_signals [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
migration_test_data_persistence [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
migrations [4.2.x] Fixed #34568 -- Made makemigrations --update respect --name option. 2023-05-17 13:15:30 +02:00
migrations2 [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
model_enums [4.2.x] Refs #34118 -- Fixed CustomChoicesTests.test_uuid_unsupported on Python 3.11.4+. 2023-04-07 11:08:32 +02:00
model_fields [4.2.x] Fixed #34590 -- Reverted "Refs #33308 -- Improved adapting DecimalField values to decimal." 2023-05-24 11:00:21 +02:00
model_forms
model_formsets
model_formsets_regress
model_indexes
model_inheritance Refs #33984 -- Added test for creating copies of model instances with inherited m2m fields. 2022-11-02 12:30:16 +01:00
model_inheritance_regress
model_meta [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
model_options
model_package
model_regress
model_utils
modeladmin [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
multiple_database [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
mutually_referential
nested_foreign_keys
no_models
null_fk
null_fk_ordering
null_queries
one_to_one
or_lookups
order_with_respect_to
ordering [4.2.x] Fixed #34372 -- Fixed queryset crash on order by aggregation using OrderBy. 2023-02-27 07:10:45 +01:00
pagination
postgres_tests [4.2.x] Fixed #34459 -- Fixed SearchVector() crash for parameters with % symbol. 2023-04-06 13:33:13 +02:00
prefetch_related Removed unnecessary commas in tests. 2022-12-21 11:41:29 +01:00
project_template
properties
proxy_model_inheritance
proxy_models
queries [4.2.x] Fixed #34267 -- Fixed sliced QuerySet.union() crash. 2023-01-20 09:25:26 +01:00
queryset_pickle
raw_query
redirects_tests
requests_tests [4.2.x] Fixed #34484, Refs #34482 -- Reverted "Fixed #29186 -- Fixed pickling HttpRequest and subclasses." 2023-04-12 18:53:22 +02:00
requirements [4.2.x] Refs #30220 -- Bumped required version of Selenium to 3.8.0. 2023-06-13 10:13:15 +02:00
reserved_names
resolve_url
responses
reverse_lookup
save_delete_hooks
schema [4.2.x] Fixed warnings per flake8 6.1.0. 2023-07-30 16:18:48 +02:00
select_for_update [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
select_related
select_related_onetoone [4.2.x] Fixed #34612 -- Fixed QuerySet.only() crash on reverse relationships. 2023-06-01 20:27:06 +01:00
select_related_regress
serializers [4.2.x] Fixed #34779 -- Avoided unnecessary selection of non-nullable m2m fields without natural keys during serialization. 2023-08-19 11:23:59 +02:00
servers [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
sessions_tests [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
settings_tests [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
shell
shortcuts
signals
signed_cookies_tests
signing Fixed #33199 -- Deprecated passing positional arguments to Signer/TimestampSigner. 2022-12-09 12:44:48 +01:00
sitemaps_tests Fixed #33662 -- Allowed Sitemap to customize languages for each item. 2022-12-19 12:51:52 +01:00
sites_framework [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
sites_tests
staticfiles_tests [4.2.x] Fixed #34322 -- Made ES module support to ManifestStaticFilesStorage optional. 2023-03-18 14:06:09 +01:00
str
string_lookup
swappable_models [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
syndication_tests
template_backends [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
template_loader
template_tests [4.2.x] Fixed #34363 -- Fixed floatformat crash on zero with trailing zeros. 2023-02-22 20:49:04 +01:00
templates
test_client [4.2.x] Refs #34482 -- Reverted "Fixed #32969 -- Fixed pickling HttpResponse and subclasses." 2023-04-12 18:53:29 +02:00
test_client_regress Fixed #34240 -- Preserved headers of requests made with django.test.Client in assertRedirects(). 2023-01-13 11:30:27 +01:00
test_exceptions
test_runner [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
test_runner_apps
test_utils [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
timezones [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
transaction_hooks
transactions [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
unmanaged_models [4.2.x] Refs #33476 -- Applied Black's 2023 stable style. 2023-02-01 11:37:29 +01:00
update Fixed #16211 -- Added logical NOT support to F expressions. 2022-10-31 09:55:51 +01:00
update_only_fields
urlpatterns
urlpatterns_reverse
user_commands [4.2.x] Fixed #34259 -- Passed called_from_command_line to command subparsers. 2023-02-03 07:54:15 +01:00
utils_tests [4.2.x] Fixed CVE-2023-41164 -- Fixed potential DoS in django.utils.encoding.uri_to_iri(). 2023-09-04 12:05:35 +02:00
validation
validators [4.2.x] Fixed CVE-2023-36053 -- Prevented potential ReDoS in EmailValidator and URLValidator. 2023-07-03 08:19:23 +02:00
version
view_tests [4.2.x] Refs #34342 -- Added tests for handling sync streaming responses by test client. 2023-02-17 11:48:53 +01:00
wsgi
xor_lookups
.coveragerc
README.rst
runtests.py
test_sqlite.py
urls.py

To run the test suite, first, create and activate a virtual environment. Then
install some requirements and run the tests::

    $ cd tests
    $ python -m pip install -e ..
    $ python -m pip install -r requirements/py3.txt
    $ ./runtests.py

For more information about the test suite, see
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.