django/tests
Berker Peksag f0425c7260 Refs -- Added tests for using custom user models with built-in auth forms.
Also updated topics/auth/customizing.txt to reflect that subclasses of
UserCreationForm and UserChangeForm can be used with custom user models.

Thanks Baptiste Mispelon for the initial documentation.
2016-02-17 10:26:07 -05:00
..
absolute_url_overrides Fixed -- Fixed E731 flake warnings. 2016-01-25 14:23:43 -05:00
admin_autodiscover Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
admin_changelist Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
admin_checks Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
admin_custom_urls Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
admin_docs Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
admin_filters Changed gypsy to manouche in docs and tests. 2016-02-03 09:45:30 -05:00
admin_inlines Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
admin_ordering Fixed -- Updated signature of ModelAdmin.formfield_for_* to make request a positional argument. 2015-12-29 12:49:14 -05:00
admin_registration Refs -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
admin_scripts Fixed -- Allowed management commands to check if migrations are applied. 2016-02-12 13:34:56 -05:00
admin_utils Made @override_settings(ROOT_URLCONF=...) consistent. 2016-02-08 09:52:39 -05:00
admin_views Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
admin_widgets Made @override_settings(ROOT_URLCONF=...) consistent. 2016-02-08 09:52:39 -05:00
aggregation Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
aggregation_regress Fixed -- Fixed E123 flake8 warnings. 2016-02-05 15:11:07 -05:00
annotations Fixed -- Fixed E123 flake8 warnings. 2016-02-05 15:11:07 -05:00
app_loading Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
apps Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
auth_tests Refs -- Added tests for using custom user models with built-in auth forms. 2016-02-17 10:26:07 -05:00
backends Fixed -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False. 2016-02-08 07:21:54 -05:00
base
bash_completion Removed support for syncing apps without migrations per deprecation timeline. 2015-01-18 15:58:06 -05:00
basic Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
builtin_server Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
bulk_create Fixed many spelling mistakes in code, comments, and docs. 2015-12-03 12:48:24 -05:00
cache Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
check_framework Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
choices Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
conditional_processing Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
contenttypes_tests Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
context_processors Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
createsuperuser Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
csrf_tests Fixed -- Fixed CSRF behind a proxy (settings.USE_X_FORWARDED_PORT=True). 2016-01-20 18:19:24 -05:00
custom_columns Refs -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
custom_lookups Fixed -- Unified Transform and Expression APIs 2015-09-21 19:56:24 +10:00
custom_managers Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
custom_methods Tweak some examples. 2015-08-22 20:25:42 +02:00
custom_migration_operations Fixed -- Prevented MigrationWriter to write operation kwargs that are not explicitly deconstructed 2015-01-07 17:29:20 -07:00
custom_pk Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
datatypes Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
dates Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
datetimes Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
db_functions Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
db_typecasts Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
dbshell Fixed -- Renamed the postgresql_psycopg2 database backend to postgresql. 2015-08-07 09:33:17 -04:00
decorators Fixed -- Added keep_lazy() as a replacement for allow_lazy(). 2015-12-12 14:46:48 -05:00
defer Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
defer_regress Fixed -- Isolated inlined test models registration. 2016-01-06 20:00:07 -05:00
delete Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
delete_regress Changed database connection duplication technique. 2015-09-09 23:03:51 +02:00
deprecation Fixed -- Added backwards compatibility aliases for LoaderOrigin and StringOrigin. 2015-09-29 18:31:11 -04:00
dispatch Used assertIsInstance in tests. 2015-04-27 08:40:36 -04:00
distinct_on_fields Refs -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
empty Fixed -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
expressions Refs -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
expressions_case Refs -- Added test for __in lookup in a Case expression. 2016-01-13 08:56:36 -05:00
extra_regress Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
field_deconstruction Refs -- Ensured isolation between autodetector tests 2015-08-28 10:17:34 +10:00
field_defaults Fixed -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
field_subclassing Removed SubfieldBase per deprecation timeline. 2015-09-23 19:31:09 -04:00
file_storage Refs -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
file_uploads Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
files Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
fixtures Fixed -- Warned when dumping proxy model without concrete parent. 2016-02-04 19:40:12 -05:00
fixtures_model_package Fixed -- Made loaddata's 'fixture not found' warning an exception. 2016-01-04 19:39:35 -05:00
fixtures_regress Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
flatpages_tests Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
force_insert_update Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
foreign_object Fixed -- Reallowed Q-objects in ForeignObject.get_extra_descriptor_filter(). 2016-02-11 08:59:43 -05:00
forms_tests Fixed -- Prevented ClearableFileInput from masking exceptions on Python 2 2016-02-15 22:51:46 +02:00
from_db_value Refs -- Fixed failing test case 2015-06-17 20:07:00 +02:00
generic_inline_admin Made @override_settings(ROOT_URLCONF=...) consistent. 2016-02-08 09:52:39 -05:00
generic_relations Fixed -- Removed null assignment check for non-nullable foreign key fields. 2016-02-11 10:07:39 -05:00
generic_relations_regress Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
generic_views Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
get_earliest_or_latest Made multiline assertRaises* conform to flake8's E128 rule. 2016-02-04 19:14:10 -05:00
get_object_or_404 Refs -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
get_or_create Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
gis_tests Refs -- Fixed aggregate GIS test on Oracle. 2016-02-09 10:04:54 -05:00
handlers Fixed -- Removed redundant status code assertions from tests 2015-11-21 18:12:33 +01:00
http_utils Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
httpwrappers Made multiline assertRaises* conform to flake8's E128 rule. 2016-02-04 19:14:10 -05:00
humanize_tests Moved contrib.humanize tests out of contrib. 2015-02-11 10:19:22 -05:00
i18n Fixed -- Made forms.FileField and translation.lazy_number() picklable. 2016-02-15 11:44:29 -05:00
import_error_package Refactored tests that rely on an ImportError for Python 3.5 compatibility 2015-02-03 18:30:46 -05:00
indexes Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
inline_formsets Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
inspectdb Fixed --- Made inspectdb handle renamed fields in unique_together. 2015-11-25 13:07:00 -05:00
introspection Fixed -- Added models.BigAutoField. 2015-12-25 20:01:31 -05:00
invalid_models_tests Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
known_related_objects Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
logging_tests Fixed -- Removed promotion of RemovedInNextVersionWarning to loud by default. 2016-01-14 09:05:43 -05:00
lookup Fixed -- Fixed E123 flake8 warnings. 2016-02-05 15:11:07 -05:00
m2m_and_m2o Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
m2m_intermediary Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
m2m_multiple Tweak some examples. 2015-08-22 20:25:42 +02:00
m2m_recursive Removed numbering from the models.py header of some test packages. 2014-09-24 17:28:56 +07:00
m2m_regress Fixed -- Deprecated direct assignment to the reverse side of a related set. 2015-10-27 07:57:15 -04:00
m2m_signals Fixed -- Deprecated direct assignment to the reverse side of a related set. 2015-10-27 07:57:15 -04:00
m2m_through Refs -- Added @skipUnlessDBFeature to a test. 2016-01-21 08:05:55 -05:00
m2m_through_regress Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
m2o_recursive Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
mail Refs -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
managers_regress Fixed -- Isolated inlined test models registration. 2016-01-06 20:00:07 -05:00
many_to_many Fixed -- Fixed E123 flake8 warnings. 2016-02-05 15:11:07 -05:00
many_to_one Fixed -- Removed null assignment check for non-nullable foreign key fields. 2016-02-11 10:07:39 -05:00
many_to_one_null Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
max_lengths Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
messages_tests Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
middleware Fixed -- Fixed E123 flake8 warnings. 2016-02-05 15:11:07 -05:00
middleware_exceptions Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
migrate_signals Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
migration_test_data_persistence Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
migrations Fixed -- Fixed E123 flake8 warnings. 2016-02-05 15:11:07 -05:00
migrations2 Fixed , -- Optimized migration plan handling 2015-09-19 14:54:53 +10:00
model_fields Refs -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
model_forms Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
model_formsets Fixed -- Deprecated direct assignment to the reverse side of a related set. 2015-10-27 07:57:15 -04:00
model_formsets_regress Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
model_inheritance Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
model_inheritance_regress Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
model_meta Fixed -- Fixed E731 flake warnings. 2016-01-25 14:23:43 -05:00
model_options Fixed many spelling mistakes in code, comments, and docs. 2015-12-03 12:48:24 -05:00
model_package Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
model_permalink Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
model_regress Refs -- Removed an apps.populate() call in model unpickling that can cause deadlocks. 2016-02-08 08:28:48 -05:00
model_validation Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
modeladmin Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
multiple_database Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
mutually_referential Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
nested_foreign_keys Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
no_models Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
null_fk Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
null_fk_ordering Fixed many spelling mistakes in code, comments, and docs. 2015-12-03 12:48:24 -05:00
null_queries Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
one_to_one Fixed -- Removed null assignment check for non-nullable foreign key fields. 2016-02-11 10:07:39 -05:00
or_lookups Fixed -- Prevented UnicodeDecodeError for Q object repr 2015-12-13 15:07:17 +01:00
order_with_respect_to Fixed -- Isolated inlined test models registration. 2016-01-06 20:00:07 -05:00
ordering Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
pagination Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
postgres_tests Fixed -- Fixed RangeField/ArrayField serialization with None values 2016-02-16 21:07:05 +01:00
prefetch_related Fixed -- Prevented duplicate queries with nested prefetch_related(). 2016-01-26 07:20:13 -05:00
project_template Fixed -- Changed project/app templates to use a "py-tpl" suffix. 2016-01-25 12:39:06 -05:00
properties Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
proxy_model_inheritance Fixed , -- Fixed deletion of intermediate proxy models. 2015-10-12 12:14:26 -04:00
proxy_models Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
queries Fixed -- Made sure __in lookups use to_field as default. 2016-02-11 11:09:08 -05:00
queryset_pickle Fixed many spelling mistakes in code, comments, and docs. 2015-12-03 12:48:24 -05:00
raw_query Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
redirects_tests Moved contrib.redirects tests out of contrib. 2015-02-11 10:19:22 -05:00
requests Fixed -- Fixed transient failure of test_max_age_expiration 2016-02-15 09:26:17 -05:00
requirements Fixed -- Added support for serialization of enum.Enum in migrations. 2015-11-19 17:21:12 -05:00
reserved_names Removed numbering from the models.py header of some test packages. 2014-09-24 17:28:56 +07:00
resolve_url Fixed -- Moved django.core.urlresolvers to django.urls. 2015-12-31 14:21:29 -05:00
responses Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
reverse_lookup Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
save_delete_hooks Removed numbering from the models.py header of some test packages. 2014-09-24 17:28:56 +07:00
schema Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
select_for_update Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
select_related Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
select_related_onetoone Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
select_related_regress Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
serializers Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
servers Refs -- Silenced logging output in servers tests. 2016-02-08 11:14:27 -05:00
sessions_tests Stopped registering the sessions tests models to the sessions app. 2016-02-04 12:28:09 -05:00
settings_tests Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
shell Fixed -- Added django-admin shell --command option. 2016-01-06 18:43:41 -05:00
shortcuts Removed support for passing a context to a generic Template.render(). 2015-09-23 19:31:11 -04:00
signals Fixed -- Isolated inlined test models registration. 2016-01-06 20:00:07 -05:00
signed_cookies_tests Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
signing Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
sitemaps_tests Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
sites_framework Removed unneeded hint=None/obj=None in system check messages. 2016-02-12 13:01:25 -05:00
sites_tests Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
staticfiles_tests Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
str Fixed -- Isolated inlined test models registration. 2016-01-06 20:00:07 -05:00
string_lookup Fixed -- Modified QuerySet.__repr__() to disambiguate it from a list. 2015-10-06 12:38:34 -04:00
swappable_models Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
syndication_tests Made multiline assertRaises* conform to flake8's E128 rule. 2016-02-04 19:14:10 -05:00
template_backends Fixed -- Added autoescape option to DjangoTemplates backend. 2015-11-12 19:14:23 -05:00
template_loader Fixed -- Raised a helpful error if loader.select_tamplate() is passed a string. 2016-01-25 18:37:02 -05:00
template_tests Fixed -- Made urlize() trim multiple trailing punctuation. 2016-02-15 09:10:15 -05:00
templates Changed `action="."` to `action=""` in tests and docs. 2016-01-21 13:59:15 -05:00
test_client Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
test_client_regress Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
test_discovery_sample Fixed -- Added support for test tags to DiscoverRunner. 2016-02-17 09:44:18 -05:00
test_discovery_sample2 Fixed -- Added an option to reverse tests order. 2014-11-24 19:24:11 -05:00
test_exceptions Reduced reduce() usage; refs . 2014-11-20 14:31:14 -05:00
test_runner Fixed -- Added support for test tags to DiscoverRunner. 2016-02-17 09:44:18 -05:00
test_utils Fixed -- Made TestCase check deferrable constraints after each test. 2016-02-13 06:53:39 -05:00
timezones Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
transaction_hooks Fixed -- Added support for post-commit callbacks 2015-06-30 14:51:00 -04:00
transactions Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
unmanaged_models Removed British/Austrialian word: whilist. 2015-12-31 14:29:52 -05:00
update Refs -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
update_only_fields Fixed -- Deprecated direct assignment to the reverse side of a related set. 2015-10-27 07:57:15 -04:00
urlpatterns_reverse Fixed -- Removed SHA1 password hashes in tests. 2016-02-06 08:47:21 -05:00
user_commands Refs -- Added assertion for Command.requires_migrations_checks default. 2016-02-15 09:39:55 -05:00
utils_tests Refs -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
validation Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
validators Fixed -- Added URLValidator hostname length validation. 2015-12-08 15:46:45 -05:00
version Fixed -- Updated get_version() release candidate naming for PEP 0440. 2015-11-19 10:00:09 -05:00
view_tests Fixed -- Masked sensitive settings in debug reports regardless of case. 2016-02-11 18:13:03 -05:00
wsgi Made @override_settings(ROOT_URLCONF=...) consistent. 2016-02-08 09:52:39 -05:00
.coveragerc Fixed -- Removed parallel=True coverage option 2015-08-04 09:32:12 -04:00
README.rst Fixed -- Added mock as a test dependency. 2014-12-01 16:08:25 -05:00
runtests.py Fixed -- Added support for test tags to DiscoverRunner. 2016-02-17 09:44:18 -05:00
test_sqlite.py Added trailing comma. 2015-02-06 12:58:45 +01:00
urls.py Fixed "URLconf" spelling in code comments. 2015-10-22 14:46:42 -04:00

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