django/tests
Dmitry Medvinsky 1a9f6db5ff Fixed #27219 -- Changed cx_Oracle client encoding to AL32UTF8 to allow 4-byte characters. 2016-09-19 20:19:57 -04:00
..
absolute_url_overrides
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
admin_docs Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -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
admin_registration
admin_scripts Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
admin_utils Fixed admin_utils test failures due to translation updates. 2016-08-01 15:40:46 -04:00
admin_views Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
admin_widgets Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
aggregation
aggregation_regress Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
annotations Made FieldError/FieldDoesNotExist messages uniform across Python versions. 2016-09-17 09:29:14 -04:00
app_loading
apps
auth_tests Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
backends Fixed #27170 -- Added DatabaseWrapper class attributes to ease subclassing. 2016-09-08 16:33:36 -04:00
base
bash_completion
basic Fixed #26787 -- Documented deleting and reloading of model instance fields. 2016-06-21 14:39:17 -04:00
builtin_server
bulk_create Fixed #27026 -- Fixed state initialization of bulk_create() objects if can_return_ids_from_bulk_insert. 2016-08-06 10:24:57 -04:00
cache Refs #5133 -- Isolated test_close() cache test. 2016-09-15 08:59:39 -04:00
check_framework Clarified URL regex check message with respect to include(). 2016-09-01 14:06:45 -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
csrf_tests Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -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
dates Made FieldError/FieldDoesNotExist messages uniform across Python versions. 2016-09-17 09:29:14 -04:00
datetimes Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
db_functions Fixed #26348 -- Added TruncTime and exposed it through the __time lookup. 2016-07-08 12:35:34 -04:00
db_typecasts
dbshell
decorators Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
defer
defer_regress
delete Refs #15250 -- Removed an obsolete comment regarding MTI cascade deletion. 2016-09-08 00:20:54 -04:00
delete_regress
deprecation
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 #13809 -- Made FieldFile.open() respect its mode argument. 2016-08-09 12:53:18 -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
force_insert_update
foreign_object Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
forms_tests Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04: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
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
get_or_create Fixed #26933 -- Fixed flaky update_or_create() test from refs #26804. 2016-07-28 21:45:35 -04:00
gis_tests Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -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
i18n Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -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 #27204 -- Made clashing m2m intermediary table checks ignore unmanaged models. 2016-09-09 19:18:37 -04:00
known_related_objects
logging_tests Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
lookup Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_regress Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set. 2015-10-27 07:57:15 -04:00
m2m_signals
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 #27131 -- Passed proper string type to SMTP connection login 2016-08-31 09:00:41 +02: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 #27083 -- Added support for weak ETags. 2016-09-10 08:14:52 -04: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 #27165 -- Removed unnecessary CreateModel(... 'indexes': []) in migrations. 2016-09-19 10:17:16 -04:00
migrations2 Fixed #24743, #24745 -- Optimized migration plan handling 2015-09-19 14:54:53 +10:00
model_fields Fixed #27219 -- Changed cx_Oracle client encoding to AL32UTF8 to allow 4-byte characters. 2016-09-19 20:19:57 -04:00
model_forms Refs #27025 -- Fixed "invalid escape sequence" warnings in Python 3.6. 2016-09-17 15:44:06 -04:00
model_formsets Refs #25415 -- Fixed invalid models in the test suite. 2016-09-09 17:16:42 -04: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
model_package Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
model_permalink
model_regress
modeladmin Fixed #26816 -- Corrected an admin check to require inlines to subclass InlineModelAdmin. 2016-08-24 17:34:32 -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 Fixed #25746 -- Isolated inlined test models registration. 2016-01-06 20:00:07 -05:00
ordering Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
pagination
postgres_tests Used a database feature to prevent the jsonb test model from being migrated. 2016-09-12 20:07:35 -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 Fixed a couple ordering dependent tests on Oracle broken by refs #27203. 2016-09-13 13:57:10 -04:00
queryset_pickle Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
raw_query Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
redirects_tests
requests Fixed #27113 -- Tested that setting HttpRequest.encoding clears POST. 2016-08-30 21:04:33 -04:00
requirements Refs #27132 -- Added pylibmc to test requirements. 2016-08-28 20:59:09 -04:00
reserved_names
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 #27098 -- Deprecated DatabaseIntrospection.get_indexes 2016-09-12 09:26:33 +02:00
select_for_update Fixed #27062 -- Eased implementing select_for_update() on MSSQL. 2016-09-09 11:57:38 -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
select_related_regress Fixed #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
serializers Fixed #26656 -- Added duration (timedelta) support to DjangoJSONEncoder. 2016-07-14 13:34:15 -04:00
servers Fixed #22414 -- Ensured that LiveServerTestCase closes connections. 2016-08-19 12:47:41 -04:00
sessions_tests Fixed #26764 -- Fixed Session.cycle_key() crash on unaccessed session. 2016-08-08 13:01:25 -04:00
settings_tests Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
shell
shortcuts
signals Fixed #26778 -- Fixed ModelSignal.connect() weak argument. 2016-06-18 20:45:38 -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
sitemaps_tests
sites_framework
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
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
test_discovery_sample2
test_exceptions
test_runner Fixed #27170 -- Added DatabaseWrapper class attributes to ease subclassing. 2016-09-08 16:33:36 -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 #27203 -- Replaced assertQuerysetEqual(..., lambda o: o) with assertSequenceEqual(). 2016-09-13 10:07:37 -04:00
transaction_hooks
transactions Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
unmanaged_models
update Fixed #19513, #18580 -- Fixed crash on QuerySet.update() after annotate(). 2016-06-29 14:08:13 -04:00
update_only_fields
urlpatterns_reverse Fixed #27018 -- Fixed admindocs crash with a view in a class. 2016-08-20 10:01:57 -04:00
user_commands Made miscellaneous code cleanups 2016-07-21 10:08:19 -04:00
utils_tests Refs #27025 -- Fixed a timezone test for Python 3.6. 2016-09-17 15:44:06 -04:00
validation Replaced use of TestCase.fail() with assertRaises(). 2016-06-28 11:21:26 -04:00
validators Refs #21548 -- Skipped tests that rely on pillow when it's not installed 2016-07-02 15:46:16 +02:00
version
view_tests Refs #27025 -- Fixed tests for the new ModuleNotFoundError in Python 3.6. 2016-09-16 10:24:47 -04:00
wsgi Improved test assertion in wsgi tests 2016-06-28 12:02:51 +02:00
.coveragerc
README.rst
runtests.py Made miscellaneous code cleanups 2016-07-21 10:08:19 -04:00
test_sqlite.py
urls.py

README.rst

To run the test suite::

    $ cd tests
    $ pip install -r requirements/py3.txt  # or py2.txt
    $ PYTHONPATH=..:$PYTHONPATH ./runtests.py

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