1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests
Aymeric Augustin 05cea7fdbb Changed database connection duplication technique.
This new technique is more straightforward and compatible with test
parallelization, where the effective database connection settings no
longer match settings.DATABASES.
2015-09-09 23:03:51 +02:00
..
absolute_url_overrides Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
admin_autodiscover
admin_changelist Fixed #25135 -- Deprecated the contrib.admin allow_tags attribute. 2015-09-08 19:13:43 -04:00
admin_checks Fixed #25267 -- Corrected message for admin.E122 system check. 2015-08-13 12:34:48 -04:00
admin_custom_urls Fixed #21927 -- Made application and instance namespaces more distinct. 2015-06-08 15:12:20 -04:00
admin_docs Removed 'Test that' prefix from admindocs tests. 2015-09-07 15:07:47 -04:00
admin_filters Fixed #25320 -- Reverted ManyToManyField.null to False for backwards compatibility. 2015-09-01 07:59:39 -04:00
admin_inlines Fixed #25348 -- Removed unused gif/png images from contrib.admin. 2015-09-04 08:55:36 -04:00
admin_ordering Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
admin_registration Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
admin_scripts Supported running admin_script testcases concurrently. 2015-09-09 23:01:16 +02:00
admin_utils Fixed #25348 -- Removed unused gif/png images from contrib.admin. 2015-09-04 08:55:36 -04:00
admin_views Fixed #25135 -- Deprecated the contrib.admin allow_tags attribute. 2015-09-08 19:13:43 -04:00
admin_widgets Fixed #25323 -- Fixed selenium test failures with chromedriver 2.18. 2015-08-28 13:54:03 -04:00
aggregation Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
aggregation_regress Refs #14476 -- Added a test for default annotation name access in aggregate. 2015-08-06 13:52:26 -04:00
annotations Fixed #24986 -- Added support for annotations in DISTINCT queries. 2015-08-15 08:23:32 -04:00
app_loading Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
apps Fixed #25246 -- Guarded against duplicate paths in AppConfig. 2015-09-02 15:27:41 -04:00
auth_tests Added two more tests for user-entered passwords when creating a superuser. 2015-08-18 16:22:14 -04:00
backends Changed database connection duplication technique. 2015-09-09 23:03:51 +02:00
base
bash_completion
basic Tweak some examples. 2015-08-22 20:25:42 +02:00
builtin_server
bulk_create Fixed #24997 -- Enabled bulk_create() on proxy models 2015-07-02 13:53:51 -04:00
cache Fixed #25331 -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
check_framework Fixed #25318 -- Made SILENCED_SYSTEM_CHECKS suppress all messages. 2015-08-28 13:34:56 -04:00
choices
conditional_processing Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
contenttypes_tests Fixed #24201 -- Added order_with_respect_to support to GenericForeignKey. 2015-08-27 09:20:17 -04:00
context_processors Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
createsuperuser
csrf_tests Cleaned up docstrings in csrf_tests/tests.py. 2015-09-05 09:20:57 -04:00
custom_columns Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
custom_lookups Replaced try..except blocks by context manager in custom lookups tests 2015-07-07 12:03:58 -04:00
custom_managers Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
custom_methods Tweak some examples. 2015-08-22 20:25:42 +02:00
custom_migration_operations
custom_pk Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
datatypes Used assertIsInstance in tests. 2015-04-27 08:40:36 -04:00
dates Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
datetimes Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
db_functions Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
db_typecasts
dbshell Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql. 2015-08-07 09:33:17 -04:00
decorators Fixed #25146 -- Allowed method_decorator() to decorate classes. 2015-08-01 08:38:03 -04:00
defer Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
defer_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
delete Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
delete_regress Changed database connection duplication technique. 2015-09-09 23:03:51 +02:00
deprecation Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
dispatch Used assertIsInstance in tests. 2015-04-27 08:40:36 -04:00
distinct_on_fields Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
empty
expressions Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
expressions_case Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
extra_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
field_deconstruction Refs #24590 -- Ensured isolation between autodetector tests 2015-08-28 10:17:34 +10:00
field_defaults
field_subclassing Refs #24919 -- Made test models serializable for migrations. 2015-07-21 09:19:40 -04:00
file_storage Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
file_uploads Replaced six.BytesIO with io.BytesIO 2015-07-20 08:19:47 -04:00
files Fixed #24963 -- Added File.seekable() on Python 3. 2015-06-12 10:17:21 -04:00
fixtures Refs #22258 -- Fixed an unclosed temporary file in fixtures test. 2015-09-09 14:35:51 -04:00
fixtures_model_package
fixtures_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
flatpages_tests Fixed #25331 -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
force_insert_update
foreign_object Fixed #25064 -- Allowed empty join columns. 2015-08-15 07:26:44 -04:00
forms_tests Refs #25300 -- Fixed reference to TextInput in a test. 2015-09-09 09:28:48 -04:00
from_db_value Refs #9619 -- Fixed failing test case 2015-06-17 20:07:00 +02:00
generic_inline_admin Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
generic_relations Fixed #25160 -- Moved unsaved model instance data loss check to Model.save() 2015-08-10 08:51:32 -04:00
generic_relations_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
generic_views Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
get_earliest_or_latest
get_object_or_404
get_or_create Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
gis_tests Fixed GeoIP test crash when dependencies not installed. 2015-09-04 08:52:20 -04:00
handlers Fixed #24829 -- Allowed use of TemplateResponse in view error handlers. 2015-06-17 17:11:50 -04:00
http_utils Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
httpwrappers Fixed #25254 -- Added JsonResponse json_dumps_params parameter. 2015-08-12 10:39:07 -04:00
humanize_tests
i18n Serialized some tests that interact with the filesystem. 2015-09-09 23:01:17 +02:00
import_error_package
indexes Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
inline_formsets Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
inspectdb Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
introspection Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
invalid_models_tests Fixed #14217 -- Added validation for field name collision when using model inheritance. 2015-08-25 16:16:54 -04:00
known_related_objects Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
logging_tests Fixed #25099 -- Fixed crash in AdminEmailHandler on DisallowedHost. 2015-09-04 09:24:21 -04:00
lookup Fixed #25335 -- Fixed regression where QuerySet.iterator() didn't return an iterator. 2015-09-03 07:35:22 -04:00
m2m_and_m2o Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
m2m_intermediary Fixed #21127 -- 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
m2m_regress Fixed #24505 -- Fixed clash with hidden m2m fields. 2015-03-26 19:00:37 -04:00
m2m_signals Refs #18586 -- Split up tests/m2m_signals 2015-03-22 13:21:08 +01:00
m2m_through Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
m2m_through_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
m2o_recursive Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
mail Fixed #24623 -- Fixed EmailMessage.attach_file() with text files on Python 3. 2015-07-25 07:42:30 -04:00
managers_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
many_to_many Fixed #24156 -- Fixed inherited related name of ManyToManyField. 2015-05-12 19:14:55 -04:00
many_to_one Fixed #25160 -- Moved unsaved model instance data loss check to Model.save() 2015-08-10 08:51:32 -04:00
many_to_one_null Fixed #18556 -- Allowed RelatedManager.add() to execute 1 query where possible. 2015-07-28 09:28:25 +07:00
max_lengths
messages_tests Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
middleware Fixed #25302 -- Prevented BrokenLinkEmailsMiddleware from reporting 404s when Referer = URL. 2015-08-24 19:35:49 -04:00
middleware_exceptions Fixed #24877 -- Added middleware handling of response.render() errors. 2015-07-03 12:06:40 -04:00
migrate_signals
migration_test_data_persistence
migrations Refs #24215 -- Improved error message for unhandled lazy model operations. 2015-09-07 20:31:58 -04:00
migrations2
model_fields Serialized some tests that interact with the filesystem. 2015-09-09 23:01:17 +02:00
model_forms Fixed #24706 -- Made ModelForm._post_clean() handle a ValidationError raised when constructing the model instance. 2015-09-07 14:36:39 -04:00
model_formsets Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_formsets_regress Fixed #25331 -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
model_inheritance Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_inheritance_regress Refs #21554 -- Added some assertions to a model_inheritance_regress test. 2015-08-15 19:32:21 -04:00
model_meta Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_options Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_package
model_permalink Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
model_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_validation Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
modeladmin Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
multiple_database Fixed #18556 -- Allowed RelatedManager.add() to execute 1 query where possible. 2015-07-28 09:28:25 +07:00
mutually_referential Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
nested_foreign_keys Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
no_models Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
null_fk Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
null_fk_ordering Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
null_queries Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
one_to_one Fixed #24951 -- Fixed AssertionError in delete queries involving a foreign/primary key. 2015-08-20 08:14:16 -04:00
or_lookups
order_with_respect_to Fixed #24201 -- Added order_with_respect_to support to GenericForeignKey. 2015-08-27 09:20:17 -04:00
ordering Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
pagination Fixed #23190 -- Made Paginator.page_range an iterator 2015-07-03 11:34:34 -04:00
postgres_tests Fixed #25180 -- Prevented varchar_patterns_ops and text_patterns_ops indexes for ArrayField. 2015-08-15 10:02:08 -04:00
prefetch_related Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
project_template Removed support for Python 3.3. 2015-06-18 08:36:50 -04:00
properties
proxy_model_inheritance
proxy_models Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
queries Fixed #24525 -- Fixed AssertionError in some complex queries. 2015-09-05 07:51:17 -04:00
queryset_pickle Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
raw_query Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
redirects_tests
requests Fixed #25099 -- Fixed crash in AdminEmailHandler on DisallowedHost. 2015-09-04 09:24:21 -04:00
requirements Fixed #25184 -- Added support for MaxMind GeoLite2 database format 2015-07-31 09:45:03 -04:00
reserved_names
resolve_url Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
responses Refs #24121 -- Added meaningful repr() to HttpResponse and subclasses. 2015-07-15 09:01:25 -04:00
reverse_lookup Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
save_delete_hooks
schema Used skipUnlessDBFeature where appropriate. 2015-08-08 11:27:06 -04:00
select_for_update Changed database connection duplication technique. 2015-09-09 23:03:51 +02:00
select_related Fixed #25252 -- Added friendly error message on incorrect .select_related() use 2015-08-31 15:13:59 +10:00
select_related_onetoone Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
select_related_regress Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
serializers Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
serializers_regress Fixed #25331 -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
servers Fixed #25204 -- Added missing space in runserver logging. 2015-08-01 08:01:24 -04:00
sessions_tests Fixed #22634 -- Made the database-backed session backends more extensible. 2015-08-27 15:00:09 -04:00
settings_tests Fixed #25331 -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
shortcuts Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
signals
signed_cookies_tests Refs #24652 -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
signing Fixed #22804 -- Added warning for unsafe value of 'sep' in Signer 2015-07-07 11:44:37 -04:00
sitemaps_tests Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
sites_framework Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
sites_tests Fixed reverse sites_tests failures introduced in refs #24834. 2015-06-18 16:25:32 -04:00
staticfiles_tests Prevented staticfiles test from colliding when run in parallel. 2015-09-09 23:01:17 +02:00
str Tweak some examples. 2015-08-22 20:25:42 +02:00
string_lookup Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
swappable_models
syndication_tests Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
template_backends Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
template_loader Fixed #24119, #24120 -- Formalized debug integration for template backends. 2015-05-06 17:33:47 -05:00
template_tests Fixed #24257 -- Corrected i18n handling of percent signs. 2015-08-12 10:23:34 -04:00
templates Cleaned up template loader tests. 2015-02-24 14:00:02 +01:00
test_client Fixed #25163 -- Fixed exception handling in nested test client requests. 2015-08-11 10:01:24 -04:00
test_client_regress Fixed #24720 -- Avoided resolving URLs that don't end in a slash twice in CommonMiddleware. 2015-07-31 12:04:06 -04:00
test_discovery_sample
test_discovery_sample2
test_exceptions
test_runner Cloned databases for running tests in parallel. 2015-09-09 23:01:15 +02:00
test_runner_deprecation_app
test_utils Fixed #23727 -- Inhibited the post_migrate signal when using serialized_rollback. 2015-08-24 08:59:20 -04:00
timezones Adjusted tests that were messing with database connections too heavily. 2015-09-09 23:01:16 +02:00
transaction_hooks Fixed #21803 -- Added support for post-commit callbacks 2015-06-30 14:51:00 -04:00
transactions
unmanaged_models Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
update Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
update_only_fields Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
urlpatterns_reverse Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
user_commands Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
utils_tests Fixed #24917 -- Made admindocs display model methods that take arguments. 2015-09-07 15:07:39 -04:00
validation Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
validators Refs #25345 -- Updated links to code.google.com. 2015-09-04 08:14:21 -04:00
version
view_tests Fixed #25099 -- Fixed crash in AdminEmailHandler on DisallowedHost. 2015-09-04 09:24:21 -04:00
webdesign_tests
wsgi Fixed #25331 -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
.coveragerc Fixed #25209 -- Removed parallel=True coverage option 2015-08-04 09:32:12 -04:00
README.rst
runtests.py Allowed a port range for the liveserver by default. 2015-09-09 23:01:16 +02:00
test_sqlite.py
urls.py

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