django/tests
Michal Petrucha 09da1e79de Fixed #27369 -- Prevented widgets from being shared between form field instances. 2016-11-06 07:16:56 +01:00
..
absolute_url_overrides Fixed #26125 -- Fixed E731 flake warnings. 2016-01-25 14:23:43 -05:00
admin_autodiscover
admin_changelist Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
admin_checks Fixed #26998 -- Reverted some admin checks from checking field.many_to_many back to isinstance(field, models.ManyToManyField). 2016-08-23 16:00:12 -04:00
admin_custom_urls Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
admin_docs Split admin_docs tests into separate files. 2016-09-27 18:54:35 -04:00
admin_filters Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
admin_inlines Fixed #27207 -- Replaced <p> tag with <div> in admin help texts. 2016-09-10 16:54:10 -04:00
admin_ordering Fixed #25985 -- Updated signature of ModelAdmin.formfield_for_* to make request a positional argument. 2015-12-29 12:49:14 -05:00
admin_registration Used assertIsInstance in admin_registration tests. 2016-03-24 19:20:31 -04:00
admin_scripts Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
admin_utils Refs #27218 -- Fixed LogEntry tests on MySQL 5.5. 2016-10-05 09:17:26 -04:00
admin_views Fixed #26954 -- Prevented ModelAdmin.has_module_permission()=False from blocking access to the app index page. 2016-10-13 09:11:36 -04:00
admin_widgets Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
aggregation Fixed #26458 -- Based Avg's default output_field resolution on its source field type. 2016-04-05 23:48:08 -04:00
aggregation_regress Fixed typo in tests/aggregation_regress/tests.py. 2016-09-24 18:17:53 -04:00
annotations Made FieldError/FieldDoesNotExist messages uniform across Python versions. 2016-09-17 09:29:14 -04:00
app_loading
apps Fixed #26616 -- Improved error message when AppConfig.name is invalid. 2016-06-02 10:37:00 -04:00
auth_tests Simplified some auth_tests with assertRedirects(). 2016-10-28 11:52:52 -04:00
backends Fixed #26541 -- Allowed MySQL transaction detection to work without table creation. 2016-10-01 10:01:44 -04:00
base
bash_completion Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
basic Fixed #26787 -- Documented deleting and reloading of model instance fields. 2016-06-21 14:39:17 -04:00
builtin_server
bulk_create Fixed #27385 -- Fixed QuerySet.bulk_create() on PostgreSQL when the number of objects is a multiple plus one of batch_size. 2016-10-25 19:21:08 -04:00
cache Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
check_framework Fixed #27238 -- Disabled check_pattern_startswith_slash if settings.APPEND_SLASH=False. 2016-09-19 21:00:12 -04:00
choices
conditional_processing Refs #27083 -- Updated conditional header comparison to match RFC 7232. 2016-09-16 15:45:53 -04:00
contenttypes_tests Fixed #24865 -- Added remove_stale_contenttypes management command. 2016-09-06 09:48:58 -04:00
context_processors Fixed #26145 -- Made debug context processor return queries for all databases. 2016-04-09 11:47:15 -04:00
csrf_tests Fixed CVE-2016-9014 -- Validated Host header when DEBUG=True. 2016-11-01 09:30:57 -04:00
custom_columns
custom_lookups Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
custom_managers Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
custom_methods
custom_migration_operations
custom_pk
datatypes Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
dates Made FieldError/FieldDoesNotExist messages uniform across Python versions. 2016-09-17 09:29:14 -04:00
datetimes Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
db_functions Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
db_typecasts Fixed #26498 -- Fixed TimeField microseconds round-tripping on MySQL and SQLite. 2016-04-18 09:39:46 -04:00
dbshell Fixed #26698 -- Fixed PostgreSQL dbshell crash on an empty database name. 2016-06-03 12:30:21 -04:00
decorators Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
defer Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 2016-04-29 13:06:32 -04:00
defer_regress Refs #18100 -- Added tests for deferred model deletion signals. 2016-05-10 13:21:52 -04:00
delete Refs #15250 -- Removed an obsolete comment regarding MTI cascade deletion. 2016-09-08 00:20:54 -04:00
delete_regress
deprecation Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
dispatch
distinct_on_fields Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
empty
expressions Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
expressions_case Fixed #26433 -- Fixed Case expressions with empty When. 2016-08-08 10:43:33 -04:00
extra_regress Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
field_deconstruction Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
field_defaults
field_subclassing
file_storage Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
file_uploads Replaced smart_* by force_* calls whenever possible 2016-09-03 13:46:41 +02:00
files Reverted "Fixed #26644 -- Allowed wrapping NamedTemporaryFile with File." 2016-06-18 11:06:56 -04:00
fixtures Fixed #26826 -- Stripped spaces from dumpdata pks arguments 2016-07-16 20:49:10 +02:00
fixtures_model_package
fixtures_regress Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
flatpages_tests Refs #26601 -- Deprecated old-style middleware. 2016-05-17 07:22:26 -04:00
force_insert_update
foreign_object Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
forms_tests Fixed #27369 -- Prevented widgets from being shared between form field instances. 2016-11-06 07:16:56 +01:00
from_db_value
generic_inline_admin Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
generic_relations Refs #18599 -- Added a test for assigning a GenericForeignKey in Model.__init__(). 2016-05-13 21:26:48 -04:00
generic_relations_regress Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
generic_views Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
get_earliest_or_latest
get_object_or_404 Fixed #10532 -- Relaxed hard-type checking in get_object/list_or_404 shortcuts 2016-03-29 21:34:20 +02:00
get_or_create Refs #27118 -- Reallowed using pk in QuerySet.get/update_or_create(). 2016-10-04 10:10:39 -04:00
gis_tests Fixed nonexistent tmc.edu domain in GeoIP test. 2016-10-11 19:31:13 -04:00
handlers Fixed #26971 -- Prevented crash with non-UTF-8 incoming PATH_INFO 2016-08-23 22:40:07 +02:00
httpwrappers Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
humanize_tests Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
i18n Fixed #27063 -- Prevented i18n_patterns() from using too much of the URL as the language. 2016-10-31 14:32:01 -04:00
import_error_package
indexes Fixed reverse accessor check failures in indexes tests. 2016-08-16 16:10:59 -04:00
inline_formsets Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
inspectdb Refs #24928 -- Added introspection support for UUIDField 2016-07-20 17:27:29 +02:00
introspection Fixed #27098 -- Deprecated DatabaseIntrospection.get_indexes 2016-09-12 09:26:33 +02:00
invalid_models_tests Fixed #27188 -- Allowed using unique=True with FileField. 2016-10-28 20:11:03 -04:00
known_related_objects
logging_tests Fixed #27271 -- Fixed a crash in runserver logging. 2016-09-27 09:46:07 -04:00
lookup Fixed #27268 -- Restored an invalid related field lookup error message in QuerySet filtering. 2016-09-27 15:00:36 -04:00
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_regress
m2m_signals Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set. 2015-10-27 07:57:15 -04:00
m2m_through Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
m2m_through_regress Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
m2o_recursive Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
mail Fixed #27368 -- Modifed BaseEmailBackend.__enter__() to close the connection if an exception occurs. 2016-10-21 05:59:07 -07:00
managers_regress Fixed #27073 -- Removed duplicated managers in `Model._meta.managers`. 2016-08-19 01:24:45 +07:00
many_to_many Refs #25415 -- Fixed invalid models in the test suite. 2016-09-09 17:16:42 -04:00
many_to_one Fixed #26706 -- Made RelatedManager modification methods clear prefetch_related() cache. 2016-08-05 13:32:27 -04:00
many_to_one_null Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
max_lengths Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
messages_tests Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
middleware Fixed #27346 -- Stopped setting the Content-Length header in ConditionalGetMiddleware. 2016-11-05 22:24:54 +01:00
middleware_exceptions Fixed #26915 -- Fixed regression handling responses returned from view middleware. 2016-07-25 13:41:50 -04:00
migrate_signals Fixed #27100 -- Included already applied migration changes in the pre-migrate state. 2016-08-24 01:17:48 -04:00
migration_test_data_persistence
migrations Fixed #27200 -- Provided makemigration's allow_migrate() with model_name. 2016-10-13 11:04:58 -04:00
migrations2
model_fields Fixed #27148 -- Fixed ModelMultipleChoiceField crash with invalid UUID. 2016-10-31 15:21:05 -04:00
model_forms Fixed #27369 -- Prevented widgets from being shared between form field instances. 2016-11-06 07:16:56 +01:00
model_formsets Fixed #27256 -- Changed Select widget's selected attribute to use HTML5 boolean syntax. 2016-09-21 15:12:13 -07:00
model_formsets_regress
model_indexes Refs #26709 -- Added type check for models.Index fields argument. 2016-08-16 09:53:50 -04:00
model_inheritance Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
model_inheritance_regress Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
model_meta Refs #25415 -- Fixed invalid models in the test suite. 2016-09-09 17:16:42 -04:00
model_options Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
model_package
model_permalink Refs #18974 -- Deprecated @models.permalink() decorator. 2016-10-04 14:39:49 -04:00
model_regress Tested Model.get_next/prev_by_FIELD() on unsaved models. 2016-10-11 12:09:37 -04:00
modeladmin Fixed #24941 -- Added ModelAdmin.get_exclude(). 2016-10-07 18:49:28 -04:00
multiple_database Removed unused lines in multiple_database test. 2016-09-07 09:48:31 -04:00
mutually_referential
nested_foreign_keys
no_models
null_fk Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
null_fk_ordering
null_queries
one_to_one Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
or_lookups Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
order_with_respect_to
ordering Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
pagination Fixed #26290 -- Warned that paginating an unordered QuerySet may result in inconsistent results. 2016-06-08 14:09:24 -04:00
postgres_tests Fixed #26327 -- Added JsonAgg to contrib.postgres. 2016-10-07 07:52:03 -04:00
prefetch_related Fixed #26916 -- Fixed prefetch_related when using a cached_property as to_attr. 2016-07-19 16:05:07 -04:00
project_template Fixed #5897 -- Added the Content-Length response header in CommonMiddleware 2016-06-27 10:44:57 +02:00
properties
proxy_model_inheritance
proxy_models Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
queries Tested QuerySet compatibility check. 2016-10-14 08:51:04 -04:00
queryset_pickle Fixed #27159 -- Prevented pickling a query with an __in=inner_qs lookup from evaluating inner_qs. 2016-09-22 19:59:11 -04:00
raw_query Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
redirects_tests Refs #26601 -- Deprecated old-style middleware. 2016-05-17 07:22:26 -04:00
requests Fixed CVE-2016-9014 -- Validated Host header when DEBUG=True. 2016-11-01 09:30:57 -04:00
requirements Added pytz to test requirements 2016-10-28 15:49:07 +02:00
reserved_names Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
resolve_url Refs #17209 -- Added LoginView and LogoutView class-based views 2016-06-24 10:45:13 +02:00
responses Fixed #27153 -- Added validation for HttpResponse status. 2016-08-30 21:59:43 -04:00
reverse_lookup
save_delete_hooks
schema Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
select_for_update Fixed #27193 -- Preserved ordering in select_for_update subqueries. 2016-10-04 10:46:29 -04:00
select_related Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
select_related_onetoone Fixed #26486 -- Fixed a select_related() + defer() MTI edge case. 2016-04-13 10:32:17 -04:00
select_related_regress Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
serializers Fixed #24607 -- Serialized natural keys in multi-table inheritance models. 2016-10-12 20:04:57 -04:00
servers Fixed #22414 -- Ensured that LiveServerTestCase closes connections. 2016-08-19 12:47:41 -04:00
sessions_tests Fixed #27363 -- Replaced unsafe redirect in SessionMiddleware with SuspiciousOperation. 2016-11-01 07:15:56 -04:00
settings_tests Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
shell
shortcuts Removed unused view and url from shortcuts tests. 2016-04-12 07:54:34 -04:00
signals Tested model signals "sender" parameter when defer() is used. 2016-09-21 15:25:53 -04:00
signed_cookies_tests Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
signing Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
sitemaps_tests Fixed #26290 -- Warned that paginating an unordered QuerySet may result in inconsistent results. 2016-06-08 14:09:24 -04:00
sites_framework Refs #24227 -- Replaced M2M isinstance checks by field.many_to_many 2016-03-19 09:24:27 +01:00
sites_tests Refs #26666 -- Added ALLOWED_HOSTS validation when running tests. 2016-06-20 11:07:46 -04:00
staticfiles_tests Fixed #27108 -- Displayed collectstatic's delete/overwrite warnings only if some files exist in STATIC_ROOT. 2016-09-02 14:53:18 -04:00
str
string_lookup Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
swappable_models Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
syndication_tests Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
template_backends Fixed #25788 -- Enabled the cached template loader if debug is False. 2016-09-03 09:06:33 -04:00
template_loader Fixed #25788 -- Enabled the cached template loader if debug is False. 2016-09-03 09:06:33 -04:00
template_tests Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
templates
test_client Fixed #27027 -- Restored Client.force_login() defaulting to the first auth backend. 2016-08-06 08:41:41 -04:00
test_client_regress Fixed #25187 -- Made request available in authentication backends. 2016-09-12 20:11:53 -04:00
test_discovery_sample Refs #25735 -- Made @tag decorator importable from django.test. 2016-02-19 14:21:00 -05:00
test_discovery_sample2
test_exceptions
test_runner Fixed #27301 -- Prevented exceptions that fail unpickling from crashing the parallel test runner. 2016-10-06 15:54:38 -04:00
test_utils Fixed #27214 -- Made skip db features decorators respect wrapping order and inheritance. 2016-09-13 14:12:20 -04:00
timezones Fixed #27327 -- Simplified time zone handling by requiring pytz. 2016-10-27 08:53:20 -04:00
transaction_hooks Fixed #26627 -- Fixed on_commit callbacks execution order when callbacks make transactions. 2016-05-18 09:09:48 -04:00
transactions Refs #16682 -- Tested transaction.atomic() with KeyboardInterrupt. 2016-09-21 14:28:10 -04:00
unmanaged_models Removed British/Austrialian word: whilist. 2015-12-31 14:29:52 -05:00
update Fixed #19513, #18580 -- Fixed crash on QuerySet.update() after annotate(). 2016-06-29 14:08:13 -04:00
update_only_fields Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
urlpatterns_reverse Fixed #27018 -- Fixed admindocs crash with a view in a class. 2016-08-20 10:01:57 -04:00
user_commands Fixed #27305 -- Removed BaseCommand.can_import_settings unused attribute 2016-10-02 20:31:56 +02:00
utils_tests Completed django.utils.timezone test coverage. 2016-11-01 14:01:40 -04:00
validation Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
validators Fixed #26578 -- Prohibited non-ASCII digits in validate_ipv4_address. 2016-10-28 11:38:49 -04:00
version
view_tests Captured logging output during NonDjangoTemplatesDebugViewTests.test_400(). 2016-10-29 15:39:24 -07:00
wsgi Improved test assertion in wsgi tests 2016-06-28 12:02:51 +02:00
.coveragerc Fixed #25209 -- Removed parallel=True coverage option 2015-08-04 09:32:12 -04:00
README.rst Updated "running the tests" to use 'pip install -e'. 2016-10-27 08:18:56 -04:00
runtests.py Fixed #27423 -- Simplified sys.exit() for indicating test failures. 2016-11-03 12:40:59 +01:00
test_sqlite.py
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
    $ pip install -e ..
    $ pip install -r requirements/py3.txt  # or py2.txt
    $ ./runtests.py

For more information about the test suite, see
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/.