django/tests
Luke Plant 40b8a6174f Fixed #33397 -- Corrected resolving output_field for DateField/DateTimeField/TimeField/DurationFields.
This includes refactoring of CombinedExpression._resolve_output_field()
so it no longer uses the behavior inherited from Expression of guessing
same output type if argument types match, and instead we explicitly
define the output type of all supported operations.

This also makes nonsensical operations involving dates
(e.g. date + date) raise a FieldError, and adds support for
automatically inferring output_field for cases such as:
* date - date
* date + duration
* date - duration
* time + duration
* time - time
2022-03-31 11:05:23 +02:00
..
absolute_url_overrides Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_autodiscover Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_changelist Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
admin_checks Fixed #31169 -- Adapted the parallel test runner to use spawn. 2022-03-15 16:23:55 +01:00
admin_custom_urls Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_default_site Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_docs Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
admin_filters Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
admin_inlines Fixed #33547 -- Fixed error when rendering invalid inlines with readonly fields in admin. 2022-03-01 08:09:58 +01:00
admin_ordering Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
admin_registration Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
admin_scripts Refs #33476 -- Made management commands use black. 2022-02-11 12:23:26 +01:00
admin_utils Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
admin_views Fixed #7497 -- Allowed overriding the order of apps and models in admin. 2022-03-25 10:33:44 +01:00
admin_widgets Fixed #33524 -- Allowed overriding empty_label for ForeignKey in ModelAdmin.radio_fields. 2022-02-28 13:28:21 +01:00
aggregation Fixed #33397 -- Corrected resolving output_field for DateField/DateTimeField/TimeField/DurationFields. 2022-03-31 11:05:23 +02:00
aggregation_regress Fixed #29865 -- Added logical XOR support for Q() and querysets. 2022-03-04 12:55:37 +01:00
annotations Refs #33397 -- Added extra tests for resolving an output_field of CombinedExpression. 2022-03-30 11:03:48 +02:00
app_loading Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
apps Rewrote some references to "master". 2022-03-08 14:50:06 +01:00
asgi Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
async Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
auth_tests Fixed #15619 -- Deprecated log out via GET requests. 2022-03-29 06:42:14 +02:00
backends Refs #30581 -- Fixed DatabaseFeatures.bare_select_suffix on MySQL < 8 and MariaDB < 10.4. 2022-03-22 09:45:59 +01:00
base Sorted imports per isort 4.2.9. 2017-06-01 13:23:48 -04:00
bash_completion Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
basic Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
builtin_server Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
bulk_create Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
cache Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
check_framework Fixed #31169 -- Adapted the parallel test runner to use spawn. 2022-03-15 16:23:55 +01:00
conditional_processing Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
constraints Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
contenttypes_tests Fixed #31169 -- Adapted the parallel test runner to use spawn. 2022-03-15 16:23:55 +01:00
context_processors Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
csrf_tests Fixed #33567 -- Avoided setting default text/html content type on responses. 2022-03-09 14:50:52 +01:00
custom_columns Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
custom_lookups Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
custom_managers Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
custom_methods Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
custom_migration_operations Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
custom_pk Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
datatypes Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
dates Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
datetimes Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
db_functions Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
db_typecasts Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
db_utils Moved ensure_defaults() and prepare_test_settings() logic to ConnectionHandler.configure_settings(). 2022-03-17 07:36:34 +01:00
dbshell Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
decorators Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
defer Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
defer_regress Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
delete Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
delete_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
deprecation Fixed #33518 -- Added RemovedAfterNextVersionWarning. 2022-02-21 06:23:41 +01:00
dispatch Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
distinct_on_fields Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
empty
empty_models Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
expressions Fixed #33397 -- Corrected resolving output_field for DateField/DateTimeField/TimeField/DurationFields. 2022-03-31 11:05:23 +02:00
expressions_case Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
expressions_window Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
extra_regress Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
field_deconstruction Fixed #33515 -- Prevented recreation of migration for ManyToManyField to lowercased swappable setting. 2022-02-16 21:09:24 +01:00
field_defaults Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
field_subclassing Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
file_storage Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
file_uploads Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
files Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
filtered_relation Fixed #33598 -- Reverted "Removed unnecessary reuse_with_filtered_relation argument from Query methods." 2022-03-30 07:31:56 +02:00
fixtures Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
fixtures_model_package Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
fixtures_regress Fixed #33582 -- Fixed deserializing natural keys with foreing key dependencies in a multiple database setup. 2022-03-18 20:57:08 +01:00
flatpages_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
force_insert_update Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
foreign_object Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
forms_tests Refs #32339 -- Added use_fieldset to Widget. 2022-03-30 16:28:14 +02:00
from_db_value Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
generic_inline_admin Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
generic_relations Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
generic_relations_regress Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
generic_views Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
get_earliest_or_latest Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
get_object_or_404 Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
get_or_create Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
gis_tests Refs #33577 -- Used addCleanup() to remove .aux file in GDALBandTests. 2022-03-24 09:13:24 +01:00
handlers Refs #31407 -- Handled potential exception in test cleanup. 2022-02-15 14:38:19 +01:00
httpwrappers Fixed #33567 -- Avoided setting default text/html content type on responses. 2022-03-09 14:50:52 +01:00
humanize_tests Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
i18n Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs. 2022-03-29 10:27:40 +02:00
import_error_package
indexes Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
inline_formsets Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
inspectdb Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
introspection Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
invalid_models_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
known_related_objects Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
logging_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
lookup Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
m2m_and_m2o Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_intermediary Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_multiple Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_recursive Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
m2m_signals Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_through Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
m2m_through_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
m2o_recursive Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
mail Refs #33173 -- Fixed MailTests.test_backend_arg() on Windows and Python 3.11+. 2022-02-19 20:36:01 +01:00
managers_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
many_to_many Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
many_to_one Fixed #19580 -- Unified behavior of reverse foreign key and many-to-many relations for unsaved instances. 2022-02-22 09:16:40 +01:00
many_to_one_null Fixed #19580 -- Unified behavior of reverse foreign key and many-to-many relations for unsaved instances. 2022-02-22 09:16:40 +01:00
max_lengths Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
messages_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
middleware Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
middleware_exceptions Fixed #33495 -- Improved debug logging message about adapting handlers for middlewares. 2022-02-09 12:10:26 +01:00
migrate_signals Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
migration_test_data_persistence Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
migrations Refs #32365 -- Deprecated django.utils.timezone.utc. 2022-03-29 14:47:44 +02:00
migrations2 Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_enums Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_fields Fixed #33552 -- Fixed JSONField has key lookups with numeric keys on MariaDB, MySQL, Oracle, and SQLite. 2022-03-15 06:37:35 +01:00
model_forms Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
model_formsets Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
model_formsets_regress Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
model_indexes Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_inheritance Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_inheritance_regress Refs #7488, Refs #19524 -- Removed obsolete ModelInheritanceTest.test_issue_7488() test. 2022-02-24 09:55:02 +01:00
model_meta Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_options Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_package Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
model_regress Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
model_utils Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
modeladmin Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
multiple_database Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
mutually_referential Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
nested_foreign_keys Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
no_models Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
null_fk Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
null_fk_ordering Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
null_queries Fixed #19580 -- 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 #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
order_with_respect_to Fixed #33501 -- Made order_with_respect_to respect database routers. 2022-02-09 13:31:49 +01:00
ordering Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
pagination Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
postgres_tests Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
prefetch_related Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
project_template Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
properties Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
proxy_model_inheritance Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
proxy_models Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
queries Refs #30581 -- Allowed sql.Query to be used without model. 2022-03-16 09:33:16 +01:00
queryset_pickle Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
raw_query Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
redirects_tests Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
requests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
requirements Refs #33476 -- Made management commands use black. 2022-02-11 12:23:26 +01:00
reserved_names Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
resolve_url Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
responses Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
reverse_lookup Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
save_delete_hooks Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
schema Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
select_for_update Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29: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 Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
select_related_regress Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
serializers Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
servers Rewrote some references to "master". 2022-03-08 14:50:06 +01:00
sessions_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
settings_tests Fixed #33569 -- Added SECURE_PROXY_SSL_HEADER support for list of protocols in the header value. 2022-03-23 19:33:36 +01:00
shell Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
shortcuts Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
signals Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
signed_cookies_tests Fixed #33562 -- Made HttpResponse.set_cookie() support timedelta for the max_age argument. 2022-03-07 07:57:14 +01:00
signing Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
sitemaps_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
sites_framework Removed redundant QuerySet.all() calls in docs and tests. 2022-02-22 10:29:38 +01:00
sites_tests Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
staticfiles_tests Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
str Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
string_lookup Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
swappable_models Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
syndication_tests Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
template_backends Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
template_loader Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
template_tests Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
templates Fixed #31080 -- Removed redundant type="text/javascript" attribute from <script> tags. 2019-12-11 09:49:54 +01:00
test_client Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
test_client_regress Refs #33348 -- Improved messages raised by SimpleTestCase.assertFormError()/assertFormsetErrors(). 2022-02-15 07:15:44 +01:00
test_exceptions Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_runner Refs #31169 -- Prevented infinite loop in parallel tests with custom test runner when using spawn. 2022-03-17 10:20:13 +01:00
test_runner_apps Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
test_utils Rewrote some references to "master". 2022-03-08 14:50:06 +01:00
timezones Refs #32365 -- Deprecated django.utils.timezone.utc. 2022-03-29 14:47:44 +02:00
transaction_hooks Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
transactions Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
unmanaged_models Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
update Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
update_only_fields Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
urlpatterns Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs. 2022-03-29 10:27:40 +02:00
urlpatterns_reverse Fixed #16406 -- Added ResolveMatch.captured_kwargs and extra_kwargs. 2022-03-29 10:27:40 +02:00
user_commands Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
utils_tests Refs #32365 -- Removed internal uses of utils.timezone.utc alias. 2022-03-24 06:29:50 +01:00
validation Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
validators Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
version Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
view_tests Fixed #33571 -- Fixed static serving views crash when If-Modified-Since is empty. 2022-03-11 06:19:01 +01:00
wsgi Refs #33476 -- Refactored code to strictly match 88 characters line length. 2022-02-07 20:37:05 +01:00
xor_lookups Fixed #29865 -- Added logical XOR support for Q() and querysets. 2022-03-04 12:55:37 +01:00
.coveragerc
README.rst Fixed #30367 -- Changed "pip install" to "python -m pip install" in docs, comments and hints. 2019-04-18 14:41:15 +02:00
runtests.py Fixed #31169 -- Adapted the parallel test runner to use spawn. 2022-03-15 16:23:55 +01:00
test_sqlite.py Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
urls.py

README.rst

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/.