1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests
2022-11-11 08:46:08 +01:00
..
absolute_url_overrides
admin_autodiscover
admin_changelist Fixed #32603 -- Made ModelAdmin.list_editable use transactions. 2022-10-06 20:44:07 +02:00
admin_checks Refs #2259 -- Disallowed primary keys in ModelAdmin.list_editable. 2022-04-25 11:00:50 +02:00
admin_custom_urls Fixed #33028 -- Used ModelAdmin's opts attribute instead of model._meta. 2022-06-22 07:50:24 +02:00
admin_default_site
admin_docs Fixed #33955, Fixed #33971 -- Reverted "Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs." 2022-09-01 21:09:16 +02:00
admin_filters Fixed various tests on MySQL with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
admin_inlines Used more augmented assignment statements. 2022-10-31 12:30:13 +01:00
admin_ordering
admin_registration
admin_scripts Fixed #34085 -- Made management commands don't use black for non-Python files. 2022-10-20 13:38:31 -07:00
admin_utils Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. 2022-10-07 13:05:35 +02:00
admin_views Fixed #34042 -- Improved accessibility of admin's navigation sidebar. 2022-10-12 10:21:17 +02:00
admin_widgets Refs #19215 -- Fixed admin_widgets tests if Pillow isn't installed. 2022-10-27 08:41:03 +02:00
aggregation Fixed #28477 -- Stripped unused annotations on aggregation. 2022-11-09 13:22:14 +01:00
aggregation_regress Refs #17144 -- Removed support for grouping by primary key. 2022-11-07 12:21:29 +01:00
annotations Refs #33374 -- Adjusted full match condition handling. 2022-11-07 20:23:53 +01:00
app_loading
apps
asgi Refs #33173, Refs #33755 -- Fixed ResourceWarning from unclosed files in ASGI tests. 2022-08-04 10:00:36 +02:00
async Fixed #34135 -- Added async-compatible interface to related managers. 2022-11-09 10:32:40 +01:00
auth_tests Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
backends Fixed #33872 -- Deprecated django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. 2022-08-03 11:42:51 +02:00
base
bash_completion
basic Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
builtin_server
bulk_create Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
cache Fixed #33826 -- Fixed RedisCache.set_many()/delete_many() crash with an empty list. 2022-07-06 10:45:52 +02:00
check_framework Refs #32987 -- 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 #33996 -- Fixed CheckConstraint validation on NULL values. 2022-09-13 12:48:31 +02:00
contenttypes_tests Fixed #34137 -- Made Model.refresh_from_db() clear cached generic relations. 2022-11-07 08:06:30 +01:00
context_processors
csrf_tests
custom_columns Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
custom_lookups Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
custom_managers Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
custom_methods Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
custom_migration_operations
custom_pk Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
datatypes
dates Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. 2022-10-07 13:05:35 +02:00
datetimes Replaced assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. 2022-10-07 13:05:35 +02:00
db_functions Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
db_typecasts
db_utils Added backward compatibility test for ConnectionHandler.databases property. 2022-05-13 12:01:07 +02:00
dbshell Fixed #33854 -- 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 #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
defer_regress Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
delete Refs #33374 -- Added tests for multi-table fast-deletion with filters that match everything. 2022-11-07 20:23:53 +01:00
delete_regress Fixed #33928 -- Avoided unnecessary queries when cascade updating. 2022-08-27 14:25:55 +02:00
deprecation
dispatch
distinct_on_fields
empty
empty_models
expressions Fixed #16211 -- Added logical NOT support to F expressions. 2022-10-31 09:55:51 +01:00
expressions_case Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
expressions_window Refs #28477 -- Reduced complexity of aggregation over qualify queries. 2022-11-11 08:46:08 +01:00
extra_regress Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
field_deconstruction
field_defaults
field_subclassing
file_storage Refs #34110 -- Reorganized django.core.files.storage into a separate module. 2022-11-11 06:59:33 +01:00
file_uploads Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +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 Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
fixtures Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
fixtures_model_package Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
fixtures_regress Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
flatpages_tests
force_insert_update
foreign_object Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
forms_tests Used more augmented assignment statements. 2022-10-31 12:30:13 +01: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 #33004 -- Made saving objects with unsaved GenericForeignKey raise ValueError. 2022-04-21 10:12:28 +02:00
generic_views Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
get_earliest_or_latest Fixed #33772 -- 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 Corrected test_update_or_create_with_model_property_defaults test. 2022-10-29 13:27:10 +02:00
gis_tests Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
handlers
httpwrappers Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
humanize_tests
i18n Fixed #34069 -- Made LocaleMiddleware respect language from requests when i18n patterns are used. 2022-10-13 10:38:26 +02:00
import_error_package
indexes Fixed #27236 -- Deprecated Meta.index_together in favor of Meta.indexes. 2022-07-12 09:04:31 +02:00
inline_formsets
inspectdb Fixed #33823 -- Made inspectdb generate unique related_name when reverse accessor clashes. 2022-07-06 09:35:50 +02:00
introspection Refs #27236 -- Removed usage of Meta.index_together from indexes/introspection test models. 2022-07-11 08:30:19 +02:00
invalid_models_tests Fixed #33872 -- Deprecated django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. 2022-08-03 11:42:51 +02:00
known_related_objects
logging_tests
lookup Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
m2m_and_m2o Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
m2m_intermediary Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
m2m_multiple Refs #33990 -- 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 #33984 -- Reverted "Fixed #32980 -- Made models cache related managers." 2022-09-30 18:18:33 +02:00
m2m_signals
m2m_through Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
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 Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers." 2022-09-30 18:18:33 +02:00
many_to_one Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
many_to_one_null
max_lengths
messages_tests
middleware Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
middleware_exceptions
migrate_signals Fixed #34052 -- Made migrate --check don't emit signals and output when up to date. 2022-09-27 21:10:30 +02:00
migration_test_data_persistence
migrations Used more augmented assignment statements. 2022-10-31 12:30:13 +01:00
migrations2
model_enums
model_fields Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_forms Fixed #31721 -- Allowed ModelForm meta to specify form fields. 2022-08-08 09:46:05 +02:00
model_formsets Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_formsets_regress Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_indexes Fixed #33773 -- Made Index with multiple fields respect DEFAULT_INDEX_TABLESPACE. 2022-06-13 07:21:46 +02:00
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 Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_meta
model_options Refs #27236 -- Reverted AlterIndexTogether deprecation. 2022-07-26 11:41:19 +02:00
model_package
model_regress Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
model_utils
modeladmin Fixed #11803 -- Allowed admin select widgets to display new related objects. 2022-04-15 07:46:37 +02:00
multiple_database Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
mutually_referential
nested_foreign_keys
no_models
null_fk Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
null_fk_ordering
null_queries
one_to_one
or_lookups Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
order_with_respect_to Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
ordering Fixed #34105 -- Fixed crash of ordering by nested selected expression. 2022-10-18 17:31:45 -07:00
pagination Completed test coverage for django.core.paginator. 2022-10-13 12:27:41 +02:00
postgres_tests Fixed #34149 -- Allowed adding deferrable conditional exclusion constraints on PostgreSQL. 2022-11-10 11:07:24 +01:00
prefetch_related Fixed #33984 -- Reverted "Fixed #32980 -- Made models cache related managers." 2022-09-30 18:18:33 +02:00
project_template
properties
proxy_model_inheritance
proxy_models Fixed #33816 -- Fixed QuerySet.only() after select_related() crash on proxy models. 2022-07-04 06:37:36 +02:00
queries Refs #33374 -- Adjusted full match condition handling. 2022-11-07 20:23:53 +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 Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
requirements Fixed #34111 -- Made test runner with --debug-sql format SQL queries. 2022-10-24 08:11:30 +02:00
reserved_names
resolve_url
responses Fixed CVE-2022-36359 -- Escaped filename in Content-Disposition header. 2022-08-03 08:46:31 +02:00
reverse_lookup
save_delete_hooks Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
schema Fixed #34138 -- Avoided table rebuild when adding inline m2m fields on SQLite. 2022-11-04 09:30:23 +01:00
select_for_update Fixed DatabaseFeatures.uses_savepoints/can_release_savepoints and related tests with MyISAM storage engine. 2022-04-18 07:05:52 +02:00
select_related
select_related_onetoone
select_related_regress
serializers Fixed #33937 -- Optimized serialization of related m2m fields without natural keys. 2022-09-05 20:23:32 +02:00
servers Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
sessions_tests Removed 'tests' path prefix in a couple tests. 2022-05-02 06:21:18 +02:00
settings_tests
shell Refs #33476 -- Reformatted code with Black. 2022-02-07 20:37:05 +01:00
shortcuts
signals Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
signed_cookies_tests
signing
sitemaps_tests Fixed #34088 -- Fixed Sitemap.get_latest_lastmod() crash with empty items. 2022-11-07 06:15:54 +01:00
sites_framework
sites_tests
staticfiles_tests Added test for non-HTTP request on ASGIStaticFilesHandler. 2022-08-08 07:27:32 +02:00
str
string_lookup
swappable_models
syndication_tests Fixed #22078 -- Fixed crash of Feed with decorated methods. 2022-05-26 10:39:51 +02:00
template_backends Fixed #33639 -- Enabled cached template loader in development. 2022-04-19 12:13:27 +02:00
template_loader
template_tests Fixed #27654 -- Propagated alters_data attribute to callables overridden in subclasses. 2022-11-04 11:08:58 +01:00
templates
test_client Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
test_client_regress Moved remaining SimpleTestCase.assertFormError()/assertFormsetErrors() tests to test_utils. 2022-04-05 08:37:28 +02:00
test_exceptions
test_runner Avoided assignment followed by immediate return. 2022-10-31 12:31:13 +01:00
test_runner_apps
test_utils Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
timezones Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to assertQuerySetEqual(). 2022-10-08 08:07:38 +02:00
transaction_hooks Fixed #33616 -- Allowed registering callbacks that can fail in transaction.on_commit(). 2022-09-06 12:21:36 +02:00
transactions Fixed #23353 -- Used "raise from" when raising TransactionManagementError. 2022-10-03 06:08:54 +02:00
unmanaged_models
update Fixed #16211 -- Added logical NOT support to F expressions. 2022-10-31 09:55:51 +01:00
update_only_fields
urlpatterns
urlpatterns_reverse Fixed #33955, Fixed #33971 -- Reverted "Fixed #32565 -- Moved internal URLResolver view-strings mapping to admindocs." 2022-09-01 21:09:16 +02:00
user_commands Fixed #33657 -- Allowed customizing formatter class of argument parsers. 2022-06-20 17:34:52 +02:00
utils_tests Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
validation Fixed #30581 -- Added support for Meta.constraints validation. 2022-05-10 11:22:23 +02:00
validators Fixed #34014 -- Fixed DecimalValidator validating 0 in positive exponent scientific notation. 2022-09-17 10:02:55 +02:00
version
view_tests Updated documentation and comments for RFC updates. 2022-11-10 13:52:17 +01:00
wsgi
xor_lookups
.coveragerc
README.rst
runtests.py Fixed #33872 -- Deprecated django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField. 2022-08-03 11:42:51 +02: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/.