1
0
mirror of https://github.com/django/django.git synced 2025-01-13 03:47:26 +00:00
django/tests
2023-02-18 16:28:10 +01:00
..
absolute_url_overrides
admin_autodiscover
admin_changelist Fixed -- Improved accessibility of selecting items in admin changelist. 2023-02-16 08:29:40 +01:00
admin_checks Refs -- Disallowed primary keys in ModelAdmin.list_editable. 2022-04-25 11:00:50 +02:00
admin_custom_urls Fixed -- Used ModelAdmin's opts attribute instead of model._meta. 2022-06-22 07:50:24 +02:00
admin_default_site
admin_docs Fixed -- Fixed admindocs markups for case-sensitive template/view names. 2023-02-02 13:21:08 +01:00
admin_filters Fixed various tests on MySQL with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
admin_inlines Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
admin_ordering
admin_registration
admin_scripts Fixed -- Made runserver display port after binding. 2023-02-10 08:22:34 +01:00
admin_utils Fixed –- Allowed customizing admin site log entry list. 2023-02-08 18:37:32 +01:00
admin_views Refs -- Added tests for handling sync streaming responses by test client. 2023-02-17 10:48:00 +01:00
admin_widgets Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
aggregation Fixed -- Made PostgreSQL backend use client-side parameters binding with psycopg version 3. 2023-01-17 08:24:08 +01:00
aggregation_regress Fixed -- Fixed grouping by ambiguous aliases. 2023-01-09 10:52:51 +01:00
annotations Fixed -- Fixed return value of Exists() with empty queryset. 2023-01-26 19:54:48 +01:00
app_loading
apps Rewrote some references to "master". 2022-03-08 14:50:06 +01:00
asgi Fixed -- Added async support to StreamingHttpResponse. 2022-12-22 10:41:12 +01:00
async Fixed -- Allowed specifying different field values for create operation in QuerySet.update_or_create(). 2023-02-14 11:50:35 +01:00
auth_tests Increased the default PBKDF2 iterations for Django 5.0. 2023-02-04 13:37:44 +01:00
backends Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
base
bash_completion
basic Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
builtin_server Fixed -- Optimized LimitedStream wrapper. 2023-01-05 19:26:56 +01:00
bulk_create Fixed -- Fixed QuerySet.bulk_create() on fields with db_column in unique_fields/update_fields. 2022-11-22 14:47:21 +01:00
cache Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
check_framework Refs -- Relaxed system check for template tag modules with the same name by turning into a warning. 2022-10-03 10:52:21 +02:00
conditional_processing Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
constraints Fixed -- Fixed Model.validate_constraints() crash on ValidationError with no code. 2023-02-08 16:38:55 +01:00
contenttypes_tests Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
context_processors
csrf_tests Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
custom_columns Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
custom_lookups Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
custom_managers Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
custom_methods Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
custom_migration_operations
custom_pk Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
datatypes Refs -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
dates Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. 2022-10-07 13:05:35 +02:00
datetimes Refs -- Removed support for pytz timezones per deprecation timeline. 2023-01-17 11:49:15 +01:00
db_functions Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
db_typecasts
db_utils Fixed -- Added support for psycopg version 3. 2022-12-15 06:17:57 +01:00
dbshell Fixed -- Corrected the order of parameters in dbshell on PostgreSQL. 2022-07-18 06:30:20 +02:00
decorators Normalized decorator style for functools.wraps. 2022-05-25 10:58:48 +02:00
defer Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
defer_regress Refs -- Removed PickleSerializer per deprecation timeline. 2023-01-17 11:49:15 +01:00
delete Fixed random delete.tests.DeletionTests.test_deletion_order failures. 2022-12-30 12:22:30 +01:00
delete_regress Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
deprecation Refs -- Removed CSRF_COOKIE_MASKED transitional setting per deprecation timeline. 2023-01-17 11:49:15 +01:00
dispatch
distinct_on_fields
empty
empty_models
expressions Refs -- Made Expression.asc()/desc() and OrderBy raise ValueError when nulls_first/nulls_last=False is passed. 2023-01-17 11:49:15 +01:00
expressions_case Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
expressions_window Refs -- Reduced complexity of aggregation over qualify queries. 2022-11-11 08:46:08 +01:00
extra_regress Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
field_deconstruction Fixed -- Prevented recreation of migration for ManyToManyField to lowercased swappable setting. 2022-02-16 21:09:24 +01:00
field_defaults
field_subclassing
file_storage Fixed -- Preserved callable storage when it returns default_storage. 2023-01-23 10:29:17 +01:00
file_uploads Refs -- Deprecated DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings. 2023-01-12 09:58:36 +01:00
files Fixed -- Fixed file_move_safe() crash when moving files with SELinux. 2022-10-24 13:54:51 +02:00
filtered_relation Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
fixtures Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
fixtures_model_package Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
fixtures_regress Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
flatpages_tests
force_insert_update
foreign_object Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
forms_tests Completed test coverage for django.forms.utils. 2023-02-15 07:36:05 +01:00
from_db_value
generic_inline_admin
generic_relations Fixed -- Allowed specifying different field values for create operation in QuerySet.update_or_create(). 2023-02-14 11:50:35 +01:00
generic_relations_regress Fixed -- Fixed queryset crash when excluding reverse GenericRelation. 2022-11-18 10:13:31 +01:00
generic_views Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
get_earliest_or_latest Fixed -- Added QuerySet.first()/last() error message on unordered queryset with aggregation. 2022-06-14 12:24:43 +02:00
get_object_or_404
get_or_create Fixed -- Allowed specifying different field values for create operation in QuerySet.update_or_create(). 2023-02-14 11:50:35 +01:00
gis_tests Fixed -- Fixed SpatialReference.srid for objects without top-level authority. 2023-02-17 19:56:29 +01:00
handlers Fixed , Refs -- Fixed test client handling of async streaming responses. 2023-02-17 10:48:04 +01:00
httpwrappers Refs -- Used aiter() and anext(). 2023-01-18 13:45:07 +01:00
humanize_tests Fixed -- Improved timesince handling of long intervals. 2023-01-04 11:14:06 +01:00
i18n Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
import_error_package
indexes Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
inline_formsets
inspectdb Fixed -- Added support for unlimited CharField on PostgreSQL. 2022-12-28 12:31:04 +01:00
introspection Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
invalid_models_tests Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
known_related_objects Fixed -- Fixed QuerySet.select_related() with multi-level FilteredRelation. 2023-01-24 10:20:27 +01:00
logging_tests Refs -- Used headers argument for RequestFactory and Client in docs and tests. 2023-01-04 09:11:36 +01:00
lookup Removed unnecessary commas in tests. 2022-12-21 11:41:29 +01:00
m2m_and_m2o Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
m2m_intermediary Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
m2m_multiple Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
m2m_recursive Relaxed some query ordering assertions in various tests. 2022-04-14 12:12:13 +02:00
m2m_regress Fixed -- Reverted "Fixed -- Made models cache related managers." 2022-09-30 18:18:33 +02:00
m2m_signals
m2m_through Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
m2m_through_regress
m2o_recursive Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
mail Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
managers_regress
many_to_many Fixed -- Reverted "Fixed -- Made models cache related managers." 2022-09-30 18:18:33 +02:00
many_to_one Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
many_to_one_null Fixed -- Unified behavior of reverse foreign key and many-to-many relations for unsaved instances. 2022-02-22 09:16:40 +01:00
max_lengths
messages_tests
middleware Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
middleware_exceptions Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
migrate_signals Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
migration_test_data_persistence Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
migrations Completed test coverage for django.db.migrations.graph. 2023-02-15 07:40:19 +01:00
migrations2 Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
model_enums
model_fields Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
model_forms Fixed -- Allowed ModelForm meta to specify form fields. 2022-08-08 09:46:05 +02:00
model_formsets Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_formsets_regress Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_indexes Fixed -- Made Index with multiple fields respect DEFAULT_INDEX_TABLESPACE. 2022-06-13 07:21:46 +02:00
model_inheritance Refs -- Added test for creating copies of model instances with inherited m2m fields. 2022-11-02 12:30:16 +01:00
model_inheritance_regress Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_meta Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
model_options Refs -- Reverted AlterIndexTogether deprecation. 2022-07-26 11:41:19 +02:00
model_package
model_regress Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_utils
modeladmin Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
multiple_database Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
mutually_referential
nested_foreign_keys
no_models
null_fk Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
null_fk_ordering
null_queries Fixed -- Unified behavior of reverse foreign key and many-to-many relations for unsaved instances. 2022-02-22 09:16:40 +01:00
one_to_one Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
or_lookups Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
order_with_respect_to Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
ordering Refs -- Added tests for queryset ordered by annotation with nulls_first/nulls_last. 2023-02-18 16:28:10 +01:00
pagination Completed test coverage for django.core.paginator. 2022-10-13 12:27:41 +02:00
postgres_tests Fixed -- Fixed index/slice lookups on filtered aggregates with ArrayField. 2023-02-07 13:16:41 +01:00
prefetch_related Refs -- Made QuerySet.iterator() without chunk_size raise ValueError after prefetch_related(). 2023-01-17 11:49:15 +01:00
project_template
properties
proxy_model_inheritance Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
proxy_models Fixed -- Fixed QuerySet.only() after select_related() crash on proxy models. 2022-07-04 06:37:36 +02:00
queries Fixed -- Fixed sliced QuerySet.union() crash. 2023-01-20 08:51:38 +01:00
queryset_pickle
raw_query Fixed various tests on MySQL with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
redirects_tests
requests_tests Fixed CVE-2023-24580 -- Prevented DoS with too many uploaded files. 2023-02-14 08:18:40 +01:00
requirements Fixed -- Dropped support for Python 3.8 and 3.9. 2023-01-18 09:46:01 +01:00
reserved_names
resolve_url
responses Removed hardcoded date in SetCookieTests.test_far_expiration(). 2023-02-07 20:30:00 +01:00
reverse_lookup
save_delete_hooks Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
schema Fixed -- Make sure constraints names are obtained from truncated columns names. 2023-02-15 16:51:31 +01:00
select_for_update Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
select_related Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
select_related_onetoone
select_related_regress Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
serializers Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
servers Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
sessions_tests Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
settings_tests Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
shell Refs -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
shortcuts
signals Refs -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
signed_cookies_tests Fixed -- Made HttpResponse.set_cookie() support timedelta for the max_age argument. 2022-03-07 07:57:14 +01:00
signing Fixed -- Deprecated passing positional arguments to Signer/TimestampSigner. 2022-12-09 12:44:48 +01:00
sitemaps_tests Refs -- Removed SitemapIndexItem.__str__() per deprecation timeline. 2023-01-17 11:49:15 +01:00
sites_framework Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
sites_tests
staticfiles_tests Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
str
string_lookup
swappable_models Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
syndication_tests Fixed -- Fixed crash of Feed with decorated methods. 2022-05-26 10:39:51 +02:00
template_backends Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
template_loader
template_tests Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
templates
test_client Refs -- Improved implementation of FakePayload. 2023-01-05 19:25:25 +01:00
test_client_regress Fixed -- Preserved headers of requests made with django.test.Client in assertRedirects(). 2023-01-13 11:30:27 +01:00
test_exceptions
test_runner Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
test_runner_apps
test_utils Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
timezones Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
transaction_hooks Fixed -- Allowed registering callbacks that can fail in transaction.on_commit(). 2022-09-06 12:21:36 +02:00
transactions Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
unmanaged_models Refs -- Applied Black's 2023 stable style. 2023-02-01 11:04:38 +01:00
update Fixed -- Added logical NOT support to F expressions. 2022-10-31 09:55:51 +01:00
update_only_fields
urlpatterns Fixed -- Added ResolveMatch.captured_kwargs and extra_kwargs. 2022-03-29 10:27:40 +02:00
urlpatterns_reverse Fixed , Fixed -- Reverted "Fixed -- Moved internal URLResolver view-strings mapping to admindocs." 2022-09-01 21:09:16 +02:00
user_commands Fixed -- Passed called_from_command_line to command subparsers. 2023-02-03 06:56:57 +01:00
utils_tests Completed test coverage for django.utils.datastructures. 2023-02-15 07:45:00 +01:00
validation Fixed -- Added support for Meta.constraints validation. 2022-05-10 11:22:23 +02:00
validators Fixed -- Fixed DecimalValidator validating 0 in positive exponent scientific notation. 2022-09-17 10:02:55 +02:00
version
view_tests Refs -- Added tests for handling sync streaming responses by test client. 2023-02-17 10:48:00 +01:00
wsgi
xor_lookups Fixed -- Added logical XOR support for Q() and querysets. 2022-03-04 12:55:37 +01:00
.coveragerc Fixed -- Doc'd testing code coverage in parallel and used it. 2023-02-11 09:43:26 +01:00
README.rst
runtests.py Advanced deprecation warnings for Django 5.0. 2023-01-17 11:49:15 +01:00
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/.