1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests
2024-03-06 13:28:32 +01:00
..
absolute_url_overrides
admin_autodiscover
admin_changelist Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
admin_checks Fixed #10743 -- Allowed lookups for related fields in ModelAdmin.list_display. 2024-02-05 21:42:04 -03:00
admin_custom_urls
admin_default_site
admin_docs Fixed #35179 -- Made admindocs detect positional/keyword-only arguments. 2024-02-14 13:17:40 +01:00
admin_filters Fixed #35198 -- Fixed facet filters crash on querysets with no primary key. 2024-02-29 10:01:18 +01:00
admin_inlines Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
admin_ordering Fixed #9602 -- Added AdminSite.get_model_admin(). 2023-07-07 08:06:01 +02:00
admin_registration Refs #9602 -- Moved AlreadyRegistered/NotRegistered exceptions to django.contrib.admin.exceptions. 2023-07-07 13:22:06 +02:00
admin_scripts Refs #34900 -- Fixed CommandTypes.test_help_default_options_with_custom_arguments test on Python 3.13+. 2024-02-20 20:59:26 +01:00
admin_utils Fixed #10743 -- Allowed lookups for related fields in ModelAdmin.list_display. 2024-02-05 21:42:04 -03:00
admin_views Fixed #35265 -- Added AdminSite tests for changing titles. 2024-03-04 05:34:42 +01:00
admin_widgets Fixed #28404 -- Made displaying values in admin respect Field's empty_values. 2024-01-10 08:34:25 +01:00
aggregation Fixed #35042 -- Fixed a count() crash on combined queries. 2023-12-16 20:19:24 +01:00
aggregation_regress Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
annotations
app_loading Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
apps Fixed #34849 -- Avoided raising RuntimeWarning about import-time queries when apps are reinitialized with test tools. 2023-09-25 08:17:03 +02:00
asgi Fixed #35059 -- Ensured that ASGIHandler always sends the request_finished signal. 2024-01-31 14:40:57 -03:00
async Fixed #28344 -- Allowed customizing queryset in Model.refresh_from_db()/arefresh_from_db(). 2024-01-15 10:55:14 +01:00
auth_tests Refs #35030 -- Added more tests for @user_passes_test decorator. 2024-03-06 13:28:32 +01:00
backends Fixed #35021 -- Fixed capturing queries when using client-side parameters binding with psycopg 3+. 2024-03-06 11:24:58 +01:00
base
bash_completion Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
basic Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
builtin_server
bulk_create Fixed #34698 -- Made QuerySet.bulk_create() retrieve primary keys when updating conflicts. 2023-07-10 13:17:28 +02:00
cache Fixed #34806 -- Made cached_db session backend resilient to cache write errors. 2024-02-21 21:51:58 -03:00
check_framework Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
conditional_processing
constraints Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
contenttypes_tests Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
context_processors Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
csrf_tests Corrected logger in CsrfViewMiddlewareTestMixin.test_ensures_csrf_cookie_no_logging(). 2023-09-13 13:49:01 +02:00
custom_columns
custom_lookups Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
custom_managers
custom_methods
custom_migration_operations Fixed #35175 -- Made migraton writer preserve keyword-only arguments. 2024-02-09 09:37:13 +01:00
custom_pk Removed unnecessary trailing commas in tests. 2023-08-22 12:42:57 +02:00
datatypes
dates
datetimes
db_functions Fixed #33037 -- Fixed Trunc() with offset timezones on MySQL, SQLite, Oracle. 2024-02-15 10:02:57 +01:00
db_typecasts
db_utils Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
dbshell Simplified using DATABASES["OPTIONS"]. 2024-02-23 07:49:43 +01:00
decorators Refs #31949 -- Made make_middleware_decorator to work with async functions. 2023-09-13 11:41:01 +02:00
defer
defer_regress Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
delete
delete_regress Fixed #35073 -- Avoided unnecessary calling of callables used by SET/SET_DEFAULT in Collector.collect(). 2024-02-08 18:41:32 +01:00
deprecation Refs #26029 -- Removed DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings. 2023-09-18 22:12:40 +02:00
dispatch Refs #34986 -- Moved garbage_collect() helper to django.test.utils. 2023-12-06 09:26:11 +01:00
distinct_on_fields Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
empty
empty_models
expressions Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
expressions_case
expressions_window Fixed #35064 -- Fixed Window(order_by) crash with DecimalFields on SQLite. 2023-12-29 09:07:31 +01:00
extra_regress Fixed #30382 -- Allowed specifying parent classes in force_insert of Model.save(). 2023-06-29 21:52:52 +02:00
field_deconstruction Fixed #31262 -- Added support for mappings on model fields and ChoiceField's choices. 2023-08-30 22:57:40 -03:00
field_defaults Fixed #34936 -- Fixed migration crash for DecimalField with db_default on SQLite. 2023-11-02 17:57:39 +01:00
field_subclassing
file_storage Fixed #23759 -- Preserved all file extensions in Storage.get_available_name(). 2024-02-20 21:06:39 +01:00
file_uploads Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
files Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
filtered_relation Fixed #35135 -- Made FilteredRelation raise ValueError on querysets as rhs. 2024-01-29 20:29:49 +01:00
fixtures Fixed #35159 -- Fixed dumpdata crash when base querysets use prefetch_related(). 2024-01-31 16:10:05 +01:00
fixtures_model_package
fixtures_regress
flatpages_tests
force_insert_update Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
foreign_object
forms_tests Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
from_db_value
generic_inline_admin Removed unnecessary trailing commas in tests. 2023-08-22 12:42:57 +02:00
generic_relations Fixed #33651 -- Added support for prefetching GenericForeignKey. 2023-09-18 13:23:21 +02:00
generic_relations_regress Fixed #34816 -- Fixed GenericForeignKey crash when checking cache for primary keys with different types. 2023-09-08 08:47:11 +02:00
generic_views Corrected cache_page()'s timeout value in tests.generic_views.urls. 2024-02-05 13:27:51 +01:00
get_earliest_or_latest
get_object_or_404
get_or_create Removed obsolete test_get_or_create_raises_IntegrityError_plus_traceback() test. 2024-02-21 11:50:22 +01:00
gis_tests Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
handlers Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
httpwrappers Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
humanize_tests Fixed #35172 -- Fixed intcomma for string floats. 2024-02-08 10:58:54 +01:00
i18n Updated fuzzy translations in tests.i18n.patterns. 2024-03-04 11:24:21 +01:00
import_error_package
indexes Refs #27236 -- Removed Meta.index_together per deprecation timeline. 2023-09-18 22:12:40 +02:00
inline_formsets
inspectdb Fixed #33143 -- Raised RuntimeWarning when performing import-time queries. 2023-08-21 13:44:25 +02:00
introspection Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
invalid_models_tests Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
known_related_objects
logging_tests Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
lookup Fixed #35018 -- Fixed migrations crash on GeneratedField with BooleanField as output_field on Oracle < 23c. 2023-12-12 05:39:11 +01:00
m2m_and_m2o Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
m2m_intermediary Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
m2m_multiple
m2m_recursive
m2m_regress
m2m_signals
m2m_through
m2m_through_regress
m2o_recursive
mail Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
managers_regress
many_to_many Fixed #29725 -- Removed unnecessary join in QuerySet.count() and exists() on a many to many relation. 2024-02-16 08:57:16 +01:00
many_to_one Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
many_to_one_null
max_lengths
messages_tests Used enterClassContext() where appropriate. 2024-01-04 05:55:29 +01:00
middleware Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
middleware_exceptions
migrate_signals
migration_test_data_persistence
migrations Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
migrations2 Fixed #35122 -- Made migrate --prune option respect --app_label. 2024-02-13 14:47:49 +01:00
model_enums Refs #34986 -- Removed redundant CustomChoicesTests.test_timezone_unsupported(). 2023-11-29 21:12:53 +01:00
model_fields Refs #34060 -- Fixed crash when filtering against literal JSON with psycopg2. 2024-02-16 07:40:33 +01:00
model_forms Fixed #35060 -- Deprecated passing positional arguments to Model.save()/asave(). 2024-01-02 08:42:33 +01:00
model_formsets Fixed #34532 -- Made formset_factory() respect Form's default_renderer. 2023-07-24 09:09:53 +02:00
model_formsets_regress
model_indexes
model_inheritance Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
model_inheritance_regress Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
model_meta Fixed #35241 -- Cached model's full parent list. 2024-02-26 05:38:31 +01:00
model_options
model_package
model_regress
model_utils
modeladmin Fixed #35173 -- Fixed ModelAdmin.lookup_allowed() for lookups on foreign keys when not included in ModelAdmin.list_filter. 2024-02-14 22:29:49 -03:00
multiple_database Fixed #16281 -- Fixed ContentType.get_object_for_this_type() in a multiple database setup. 2024-02-05 08:25:23 +01:00
mutually_referential
nested_foreign_keys
no_models
null_fk
null_fk_ordering Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
null_queries
one_to_one Fixed #35230 -- Added cached ForeignObjectRel.accessor_name. 2024-02-19 05:47:12 +01:00
or_lookups
order_with_respect_to Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
ordering
pagination Improved style of n-tuple wording in docs and comments. 2023-06-23 09:29:35 +02:00
postgres_tests Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
prefetch_related Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
project_template
properties
proxy_model_inheritance
proxy_models Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
queries Fixed #35099 -- Prevented mutating queryset when combining with & and | operators. 2024-02-07 12:36:30 +01:00
queryset_pickle
raw_query
redirects_tests
requests_tests Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
requirements Used sys_platform in tests requirements. 2024-03-05 13:08:23 +01:00
reserved_names
resolve_url
responses Added tests for HttpResponseBase.charset/reason_phrase setters. 2023-06-10 20:43:05 +02:00
reverse_lookup
save_delete_hooks Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
schema Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
select_for_update
select_related
select_related_onetoone Fixed #34612 -- Fixed QuerySet.only() crash on reverse relationships. 2023-06-01 19:50:47 +01:00
select_related_regress
serializers Refs #21286 -- Removed invalid commented out models and tests from serializer tests. 2024-03-04 11:38:18 +01:00
servers Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
sessions_tests Fixed #34806 -- Made cached_db session backend resilient to cache write errors. 2024-02-21 21:51:58 -03:00
settings_tests Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
shell
shortcuts
signals Fixed #35174 -- Fixed Signal.asend()/asend_robust() crash when all receivers are asynchronous. 2024-02-08 11:36:28 +01:00
signed_cookies_tests
signing Refs #33199 -- Removed support for passing positional arguments to Signer/TimestampSigner. 2023-09-18 22:12:40 +02:00
sitemaps_tests Fixed #34688 -- Removed contrib.sitemaps.ping_google() and ping_google management command. 2023-07-10 05:59:35 +02:00
sites_framework
sites_tests Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
staticfiles_tests Fixed #29022 -- Fixed handling protocol-relative URLs in ManifestStaticFilesStorage when STATIC_URL is set to /. 2024-02-28 06:24:24 +01:00
str
string_lookup
swappable_models
syndication_tests
template_backends
template_loader
template_tests Fixed #30686 -- Used Python HTMLParser in utils.text.Truncator. 2024-02-07 09:46:25 +01:00
templates
test_client Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
test_client_regress Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
test_exceptions
test_runner Refs #32114 -- Fixed RemoteTestResultTest.test_unpicklable_subtest test without tblib. 2024-02-22 06:27:39 +01:00
test_runner_apps
test_utils Refs #32114 -- Fixed test crash on non-picklable objects in subtests when PickleError is raised. 2024-02-26 17:18:48 +01:00
timezones Fixed #34921 -- Fixed crash of warning for unbound naive datetimes. 2023-10-22 14:26:38 +02:00
transaction_hooks
transactions Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
unmanaged_models
update
update_only_fields
urlpatterns Fixed #35252 -- Optimized _route_to_regex(). 2024-03-05 13:09:10 +01:00
urlpatterns_reverse Refs #9847 -- Added tests for handler403 resolution. 2024-03-04 05:24:36 +01:00
user_commands Simplified call_command() calls. 2023-07-27 15:48:47 +02:00
utils_tests Refs CVE-2024-27351 -- Forwardported release notes and tests. 2024-03-04 08:22:00 +01:00
validation Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
validators Fixed #34943 -- Made EmailValidator.__eq__() ignore domain_allowlist ordering. 2023-10-28 14:35:25 +02:00
version
view_tests Fixed #35143 -- Improved accessibility of 404/500 debug pages. 2024-01-31 12:26:00 +01:00
wsgi Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
xor_lookups Fixed #34604 -- Corrected fallback SQL for n-ary logical XOR. 2023-06-08 20:41:18 +02:00
.coveragerc Fixed #34810 -- Measured test coverage on django-admin commands. 2023-09-07 15:47:26 -03:00
README.rst
runtests.py Refs #34986 -- Added django.utils.version.PYPY. 2023-11-27 10:37:29 +01:00
sitecustomize.py Fixed #34810 -- Measured test coverage on django-admin commands. 2023-09-07 15:47:26 -03:00
test_sqlite.py
urls.py Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00

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