0
0
mirror of https://github.com/django/django.git synced 2024-11-24 11:48:10 +01:00
django/tests
Adam Zapletal b9aa3239ab Refs #21286 -- Fixed YAML serialization of TimeField primary key.
Handling for PyYAML not being able to serialize `datetime.time`
values is moved from `handle_field` to `_value_from_field` as only
non-primary key, non-relation fields are passed into `handle_field`.
2024-11-12 13:23:14 +01:00
..
absolute_url_overrides
admin_autodiscover
admin_changelist Refs #26001 -- Handled relationship exact lookups in ModelAdmin.search_fields. 2024-11-05 09:06:14 +01:00
admin_checks
admin_custom_urls
admin_default_site
admin_docs Fixed #17905 -- Restricted access to model pages in admindocs. 2024-11-11 16:56:03 +01:00
admin_filters
admin_inlines Fixed #35876 -- Displayed non-ASCII fieldset names when rendering ModelAdmin.fieldsets. 2024-10-31 06:38:07 +01:00
admin_ordering
admin_registration
admin_scripts Refs #35844 -- Expanded compatibility for expected error messages in command tests on Python 3.12 and 3.13. 2024-10-29 22:06:28 +01:00
admin_utils Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
admin_views Fixed #35903 -- Made admin's "view on site" URL accept non-integer ContentType pks. 2024-11-11 16:53:31 +01:00
admin_widgets Fixed CVE-2024-41991 -- Prevented potential ReDoS in django.utils.html.urlize() and AdminURLFieldWidget. 2024-08-06 08:50:08 +02:00
aggregation Added supports_select_union skips in queries and aggregation tests. 2024-08-26 12:53:08 -03:00
aggregation_regress
annotations Fixed #35586 -- Added support for set-returning database functions. 2024-08-12 15:35:19 +02:00
app_loading
apps
asgi Refs #35059 -- Used asyncio.Event in ASGITest.test_asyncio_cancel_error to enforce specific interleaving. 2024-05-28 14:36:34 -03:00
async Fixed #35303 -- Implemented async auth backends and utils. 2024-10-07 14:19:41 +02:00
auth_tests Refs #35844 -- Used asgiref.sync.iscoroutinefunction() instead of deprecated asyncio.iscoroutinefunction(). 2024-10-17 10:15:10 -03:00
backends Fixed #35688 -- Restored timezone and role setters to be PostgreSQL DatabaseWrapper methods. 2024-08-28 19:25:07 -03:00
base
bash_completion
basic Refs #373 -- Added Model._is_pk_set() abstraction to check if a Model's PK is set. 2024-09-09 17:46:50 -03:00
builtin_server
bulk_create
cache Fixed #32831 -– Allowed cache tests to be retried via a new "retry" decorator. 2024-09-05 18:25:05 -03:00
check_framework Fixed #35656 -- Added an autodetector attribute to the makemigrations and migrate commands. 2024-10-15 16:39:12 +02:00
conditional_processing
constraints Fixed #35103 -- Used provided error code and message when fields is set without a condition on UniqueConstraint. 2024-10-10 09:20:37 +02:00
contenttypes_tests Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
context_processors
csrf_tests Refs #35727 -- Updated response.content.decode calls to use the HttpResponse.text property. 2024-10-16 11:52:22 +02:00
custom_columns
custom_lookups Fixed #35413 -- Made unsupported lookup error message more specific. 2024-07-09 09:15:38 +02:00
custom_managers
custom_methods
custom_migration_operations
custom_pk
datatypes
dates
datetimes
db_functions
db_typecasts
db_utils
dbshell
decorators Fixed #35083 -- Updated method_decorator to handle async methods. 2024-08-30 08:54:49 -03:00
defer
defer_regress Fixed #35356 -- Deferred self-referential foreign key fields adequately. 2024-04-23 13:17:17 -03:00
delete
delete_regress
deprecation Fixed #35303 -- Implemented async auth backends and utils. 2024-10-07 14:19:41 +02:00
dispatch
distinct_on_fields
empty
empty_models
expressions Refs #373, Refs #24121 -- Added ColPairs.__repr__(). 2024-09-17 14:25:58 +02:00
expressions_case
expressions_window Fixed #35665 -- Fixed a crash when passing an empty order_by to Window. 2024-08-13 11:26:17 +02:00
extra_regress
field_deconstruction
field_defaults
field_subclassing
file_storage Refs #35326 -- Adjusted deprecation warning stacklevel in FileSystemStorage.OS_OPEN_FLAGS. 2024-08-28 11:44:05 -03:00
file_uploads Fixed CVE-2024-39330 -- Added extra file name validation in Storage's save method. 2024-07-09 09:21:19 -03:00
files
filtered_relation
fixtures
fixtures_model_package
fixtures_regress Refs #29522 -- Fixed serializers/fixtures test crash if PyYAML isn't installed. 2024-09-19 08:51:30 +02:00
flatpages_tests
force_insert_update
foreign_object Refs #373 -- Added TupleIn subqueries. 2024-11-04 09:20:54 +01:00
forms_tests Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
from_db_value
generic_inline_admin
generic_relations
generic_relations_regress
generic_views
get_earliest_or_latest
get_object_or_404
get_or_create
gis_tests Fixed #35883 -- Confirmed support for GDAL 3.9. 2024-11-04 09:24:17 +01:00
handlers Refs #33735 -- Adjusted warning stacklevel in StreamingHttpResponse.__iter__()/__aiter__(). 2024-08-28 11:44:05 -03:00
httpwrappers Refs #35727 -- Updated response.content.decode calls to use the HttpResponse.text property. 2024-10-16 11:52:22 +02:00
humanize_tests Fixed #35443 -- Changed ordinal to return negative numbers unchanged. 2024-05-27 10:54:25 +02:00
i18n Fixed #34221 -- Honored translation precedence with mixed plural forms. 2024-09-16 11:04:09 +02:00
import_error_package
indexes Fixed #35469 -- Removed deferred SQL to create index removed by AlterField operation. 2024-05-28 12:44:07 +02:00
inline_formsets
inspectdb
introspection
invalid_models_tests Fixed #35815 -- Made system check accept db_default literals when DatabaseFeatures.supports_expression_defaults = False. 2024-11-11 16:05:05 +01:00
known_related_objects
logging_tests Fixed #35537 -- Changed EmailMessage.attachments and EmailMultiAlternatives.alternatives to use namedtuples. 2024-06-20 09:43:40 +02:00
lookup Fixed #35752 -- Fixed crash when using In() lookup in filters. 2024-09-11 12:42:17 +02:00
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_regress
m2m_signals
m2m_through
m2m_through_regress
m2o_recursive
mail Refs #35581 -- Reduced boilerplate in mail tests. 2024-10-29 11:13:27 +01:00
managers_regress
many_to_many Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
many_to_one Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
many_to_one_null
max_lengths
messages_tests Fixed #35622 -- Made unittest ignore Django assertions in traceback frames. 2024-08-08 21:34:01 -03:00
middleware
middleware_exceptions
migrate_signals
migration_test_data_persistence Fixed #35660 -- Made serialized_rollback and fixture data available in TransactionTestCase.setUpClass(). 2024-09-17 09:53:46 +02:00
migrations Fixed #35656 -- Added an autodetector attribute to the makemigrations and migrate commands. 2024-10-15 16:39:12 +02:00
migrations2
model_enums Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
model_fields Fixed #35766 -- Handled slices in BaseChoiceIterator. 2024-09-18 16:45:53 +02:00
model_forms Cleaned up temporary test directories in tests. 2024-07-22 08:51:01 +02:00
model_formsets Fixed #35488 -- Fixed BaseModelFormSet.validate_unique() crash due to unhashable type. 2024-06-13 16:21:53 +02:00
model_formsets_regress
model_indexes
model_inheritance
model_inheritance_regress
model_meta Fixed #35407 -- Cached model's Options.swapped. 2024-05-07 14:25:51 +02:00
model_options
model_package
model_regress
model_utils
modeladmin Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
multiple_database
mutually_referential
nested_foreign_keys
no_models
null_fk
null_fk_ordering
null_queries
one_to_one Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
or_lookups
order_with_respect_to
ordering
pagination
postgres_tests Fixed #35717 -- Reduced Create/RemoveCollation operations when optimizing migrations. 2024-10-10 13:18:46 +02:00
prefetch_related Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
project_template
properties
proxy_model_inheritance
proxy_models
queries Fixed #35011, Refs #28900 -- Added tests for QuerySet.union() with multiple models and DateTimeField annotations. 2024-11-08 13:16:44 +01:00
queryset_pickle
raw_query
redirects_tests
requests_tests Fixed #35631 -- Added HttpRequest.get_preferred_type(). 2024-09-09 12:02:18 +02:00
requirements Refs #35844 -- Added Python 3.14 to daily builds. 2024-10-16 22:19:17 -03:00
reserved_names
resolve_url
responses
reverse_lookup
save_delete_hooks
schema Fixed #35180 -- Recreated PostgreSQL _like indexes when changing between TextField and CharField field types. 2024-10-31 06:37:14 +01:00
select_for_update
select_related
select_related_onetoone
select_related_regress
serializers Refs #21286 -- Fixed YAML serialization of TimeField primary key. 2024-11-12 13:23:14 +01:00
servers
sessions_tests
settings_tests
shell Fixed #35517, Refs #35515 -- Improved test coverage of shell command. 2024-06-27 16:42:55 +02:00
shortcuts
signals
signed_cookies_tests
signing
sitemaps_tests Refs #35727 -- Updated response.content.decode calls to use the HttpResponse.text property. 2024-10-16 11:52:22 +02:00
sites_framework
sites_tests
sphinx Fixed #29942 -- Restored source file linking in docs by using the Sphinx linkcode ext. 2024-05-14 22:08:29 -03:00
staticfiles_tests Fixed #35669 -- Improved max post-process passes exceeded error message in HashedFilesMixin. 2024-08-30 10:00:51 +02:00
str
string_lookup
swappable_models
syndication_tests Fixed #12978 -- Added support for RSS feed stylesheets. 2024-06-18 17:25:43 +02:00
template_backends Fixed #35837 -- Added missing alters_data=True to QuerySet and UserManager methods. 2024-11-01 11:43:49 +01:00
template_loader
template_tests Fixed #35789 -- Improved the error message raised when the tag must be first in the template. 2024-10-10 12:21:02 +02:00
templates
test_client
test_client_regress Fixed a typo in some tests. 2024-11-11 14:47:04 +01:00
test_exceptions
test_runner Removed redundant RemoteTestResultTest._test_error_exc_info() test hook. 2024-11-11 12:31:48 +01:00
test_runner_apps
test_utils Fixed a typo in some tests. 2024-11-11 14:47:04 +01:00
timezones
transaction_hooks
transactions
unmanaged_models
update
update_only_fields Refs #35060 -- Adjusted deprecation warning stacklevel in Model.save()/asave(). 2024-08-28 11:44:05 -03:00
urlpatterns Fixed #35666 -- Documented stacklevel usage and testing, and adjusted test suite accordingly. 2024-08-28 11:44:05 -03:00
urlpatterns_reverse Fixed #28999 -- Documented how to reverse a class-based view by instance. 2024-10-23 15:37:54 +02:00
user_commands Refs #35844 -- Expanded compatibility for expected error messages in command tests on Python 3.12 and 3.13. 2024-10-29 22:06:28 +01:00
utils_tests Fixed CVE-2024-45230 -- Mitigated potential DoS in urlize and urlizetrunc template filters. 2024-09-03 09:22:32 -03:00
validation Fixed #35638 -- Updated validate_constraints to consider db_default. 2024-08-05 17:33:12 +02:00
validators Fixed #35845 -- Updated DomainNameValidator to require entire string to be a valid domain name. 2024-10-17 16:45:44 +02:00
version
view_tests Refs #35727 -- Updated response.content.decode calls to use the HttpResponse.text property. 2024-10-16 11:52:22 +02:00
wsgi
xor_lookups
.coveragerc
README.rst
runtests.py Fixed #35797 -- Removed debug context processor from default project template. 2024-09-30 16:52:28 -03:00
sitecustomize.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/.