django/tests
John Vandenberg 614ba3ad2d [1.9.x] Fixed quad quoted ("""") docstring starts.
Backport of 9e3f6c7483 from master
2015-10-20 12:20:11 -04:00
..
absolute_url_overrides Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
admin_autodiscover Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
admin_changelist [1.9.x] Removed redundancy in admin_changelist tests. 2015-09-25 10:41:08 -04:00
admin_checks Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
admin_custom_urls Fixed -- 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 [1.9.x] Fixed -- Skipped a time dependent admin_filters test on Windows. 2015-10-19 20:27:36 -04:00
admin_inlines Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
admin_ordering Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
admin_registration Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
admin_scripts Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
admin_utils Fixed -- Removed unused gif/png images from contrib.admin. 2015-09-04 08:55:36 -04:00
admin_views [1.9.x] Fixed quad quoted ("""") docstring starts. 2015-10-20 12:20:11 -04:00
admin_widgets Refs -- Fixed regression in admin datetime widget for timezones on the negative side of UTC. 2015-09-16 13:16:21 -04:00
aggregation Fixed -- Changed Count queries to execute COUNT(*) instead of COUNT('*'). 2015-09-14 13:41:35 -04:00
aggregation_regress Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
annotations Fixed -- Added support for annotations in DISTINCT queries. 2015-08-15 08:23:32 -04:00
app_loading Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
apps Fixed -- Guarded against duplicate paths in AppConfig. 2015-09-02 15:27:41 -04:00
auth_tests [1.9.x] Refs -- Fixed password help text when there aren't any validators. 2015-09-28 15:31:18 -04:00
backends [1.9.x] Refs -- Allowed "mode=memory" in SQLite test database names. 2015-10-06 12:33:21 -04:00
base
bash_completion Removed support for syncing apps without migrations per deprecation timeline. 2015-01-18 15:58:06 -05:00
basic Tweak some examples. 2015-08-22 20:25:42 +02:00
builtin_server Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
bulk_create [1.9.x] Fixed -- Fixed QuerySet.bulk_create() on models without any fields on Oracle. 2015-10-09 14:42:31 -04:00
cache Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
check_framework Refs -- Moved URLconfs into module and tidied docstrings. 2015-09-21 20:10:33 -04: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 Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04: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 -- Added CSRF Referer checking against CSRF_COOKIE_DOMAIN. 2015-09-16 12:21:50 -04:00
custom_columns Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
custom_lookups Fixed -- Unified Transform and Expression APIs 2015-09-21 19:56:24 +10:00
custom_managers Refs -- Forwardported tests and release notes for queryset chaining fix. 2015-09-17 19:22:53 -04: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 Fixed -- 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 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
datetimes Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
db_functions [1.9.x] Fixed -- Made Concat function idempotent on SQLite. 2015-10-17 15:56:00 -04: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 -- Allowed method_decorator() to accept a list/tuple of decorators. 2015-09-18 19:04:29 -04:00
defer Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
defer_regress [1.9.x] Fixed -- Cached deferred models in their proxied model's _meta.apps. 2015-10-19 20:13:16 -04:00
delete Fixed -- 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 [1.9.x] Fixed -- Added backwards compatibility aliases for LoaderOrigin and StringOrigin. 2015-09-29 19:20:11 -04:00
dispatch Used assertIsInstance in tests. 2015-04-27 08:40:36 -04:00
distinct_on_fields Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
empty Fixed -- Used more specific assertions in the Django test suite. 2014-11-03 11:56:37 -05:00
expressions [1.9.x] Fixed -- Allowed filtering over a RawSQL annotation. 2015-10-14 11:24:12 -07:00
expressions_case Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04: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 Refs -- 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 Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
files Fixed -- Added File.seekable() on Python 3. 2015-06-12 10:17:21 -04:00
fixtures Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
fixtures_model_package Removed support for custom SQL per deprecation timeline. 2015-01-17 10:16:06 -05:00
fixtures_regress Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
flatpages_tests Fixed -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04:00
force_insert_update Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
foreign_object [1.9.x] Fixed -- Made ForeignObject checks less strict. 2015-10-14 05:26:42 -07:00
forms_tests Fixed -- Fixed empty ClearableFileInput crash on Python 2. 2015-09-23 10:26:19 -04:00
from_db_value Refs -- Fixed failing test case 2015-06-17 20:07:00 +02:00
generic_inline_admin Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
generic_relations Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
generic_relations_regress Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
generic_views Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
get_earliest_or_latest Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
get_object_or_404 Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
get_or_create Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
gis_tests [1.9.x] Fixed -- Changed datatype mapping for GDALRasters 2015-10-09 16:03:42 +02:00
handlers Fixed -- Allowed use of TemplateResponse in view error handlers. 2015-06-17 17:11:50 -04:00
http_utils Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
httpwrappers Fixed -- Added JsonResponse json_dumps_params parameter. 2015-08-12 10:39:07 -04:00
humanize_tests Moved contrib.humanize tests out of contrib. 2015-02-11 10:19:22 -05:00
i18n Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04: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 Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
inspectdb Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
introspection Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
invalid_models_tests [1.9.x] Fixed -- Made empty string related_name invalid. 2015-10-19 10:11:36 -04:00
known_related_objects Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
logging_tests Refs -- Made the django logger handle INFO messages. 2015-09-23 11:33:49 -04:00
lookup Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04: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 -- Fixed clash with hidden m2m fields. 2015-03-26 19:00:37 -04:00
m2m_signals Refs -- Split up tests/m2m_signals 2015-03-22 13:21:08 +01:00
m2m_through Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
m2m_through_regress Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
m2o_recursive Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
mail Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
managers_regress Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
many_to_many Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
many_to_one Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
many_to_one_null Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
max_lengths Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
messages_tests Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
middleware Fixed -- Prevented BrokenLinkEmailsMiddleware from reporting 404s when Referer = URL. 2015-08-24 19:35:49 -04:00
middleware_exceptions Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04: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 -- Allowed specifying a start migration in squashmigrations 2015-09-19 14:55:34 +10:00
migrations2 Fixed , -- Optimized migration plan handling 2015-09-19 14:54:53 +10:00
model_fields Fixed -- Added Expression support to SQLInsertCompiler 2015-09-22 23:35:24 +10:00
model_forms [1.9.x] Fixed -- Made ModelChoiceField respect prefetch_related(). 2015-10-05 19:19:09 -04:00
model_formsets Fixed -- Readded inline foreign keys to modelformset instances 2015-09-21 21:30:49 +02:00
model_formsets_regress Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
model_inheritance Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_inheritance_regress Refs -- Added some assertions to a model_inheritance_regress test. 2015-08-15 19:32:21 -04:00
model_meta Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
model_options Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04: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 Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
model_validation Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
modeladmin Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
multiple_database Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04: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 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
null_queries Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
one_to_one [1.9.x] Fixed -- Allowed setting a reverse OneToOne relation to None. 2015-10-09 10:59:57 -04:00
or_lookups Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
order_with_respect_to Fixed -- Added order_with_respect_to support to GenericForeignKey. 2015-08-27 09:20:17 -04:00
ordering Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
pagination Fixed -- Made Paginator.page_range an iterator 2015-07-03 11:34:34 -04:00
postgres_tests Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
prefetch_related Renamed descriptor classes for related objects. 2015-09-21 22:20:42 +02:00
project_template Removed support for Python 3.3. 2015-06-18 08:36:50 -04:00
properties Removed numbering from the models.py header of some test packages. 2014-09-24 17:28:56 +07:00
proxy_model_inheritance Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
proxy_models Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
queries Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
queryset_pickle Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
raw_query Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
redirects_tests Moved contrib.redirects tests out of contrib. 2015-02-11 10:19:22 -05:00
requests Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
requirements Added a version requirement to mysqlclient in test requirements. 2015-09-17 15:07:26 -04:00
reserved_names Removed numbering from the models.py header of some test packages. 2014-09-24 17:28:56 +07:00
resolve_url Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
responses Refs -- Added meaningful repr() to HttpResponse and subclasses. 2015-07-15 09:01:25 -04:00
reverse_lookup Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
save_delete_hooks Removed numbering from the models.py header of some test packages. 2014-09-24 17:28:56 +07:00
schema [1.9.x] Used SchemaEditor.delete_model() for teardown in schema tests. 2015-10-16 09:12:20 -07:00
select_for_update Changed database connection duplication technique. 2015-09-09 23:03:51 +02:00
select_related Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04: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 [1.9.x] Made tests/serializers/models.py a models package 2015-09-26 20:05:23 +02:00
servers Fixed -- Added missing space in runserver logging. 2015-08-01 08:01:24 -04:00
sessions_tests [1.9.x] Fixed quad quoted ("""") docstring starts. 2015-10-20 12:20:11 -04:00
settings_tests Fixed -- 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 Added a test for model pre/post_init signals. 2014-11-21 10:39:37 -05:00
signed_cookies_tests Refs -- Used SimpleTestCase where appropriate. 2015-05-20 13:46:13 -04:00
signing Fixed -- 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 -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
sites_tests Fixed reverse sites_tests failures introduced in refs . 2015-06-18 16:25:32 -04:00
staticfiles_tests [1.9.x] Fixed -- Allowed collectstatic to delete broken symlinks. 2015-10-17 14:14:29 -04:00
str Tweak some examples. 2015-08-22 20:25:42 +02:00
string_lookup Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
swappable_models Sorted imports with isort; refs . 2015-02-06 08:16:28 -05:00
syndication_tests Refs -- Fixed mistakes in the new multiple enclosure feed tests 2015-09-19 15:54:33 +02:00
template_backends Renamed RemovedInDjangoXYWarnings for new roadmap. 2015-06-24 16:08:20 -04:00
template_loader Fixed , -- Formalized debug integration for template backends. 2015-05-06 17:33:47 -05:00
template_tests [1.9.x] Fixed -- Made error message for unknown template tag more helpful. 2015-10-05 17:33:18 -04:00
templates Cleaned up template loader tests. 2015-02-24 14:00:02 +01:00
test_client Fixed -- Use force_str for test client URLs. 2015-09-19 15:05:54 +02:00
test_client_regress Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
test_discovery_sample Made a doctest compatible with Python 2 2014-10-23 11:16:17 +02: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 Refs -- Fixed connection.queries on SQLite. 2015-09-17 23:01:33 +02:00
test_runner_deprecation_app
test_utils Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
timezones Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
transaction_hooks Fixed -- Added support for post-commit callbacks 2015-06-30 14:51:00 -04:00
transactions Fixed -- set_autocommit(False) + ORM queries. 2015-09-21 22:21:53 +02:00
unmanaged_models Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
update Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
update_only_fields Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
urlpatterns_reverse Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
user_commands Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
utils_tests [1.9.x] Fixed -- Fixed pickling a SimpleLazyObject wrapping a model. 2015-10-03 13:01:08 -04:00
validation Fixed -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 2015-07-27 18:28:13 -04:00
validators Fixed -- Added model field validation for decimal places and max digits. 2015-09-18 14:30:20 -04:00
version
view_tests Fixed -- Limited line lengths to 119 characters. 2015-09-12 11:40:50 -04:00
webdesign_tests Moved contrib.webdesign tests out of contrib. 2015-02-11 12:30:07 -05:00
wsgi Fixed -- Removed trailing blank lines in docstrings. 2015-08-31 17:37:21 -04: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 Refs -- Made the django logger handle INFO messages. 2015-09-23 11:33:49 -04:00
test_sqlite.py Added trailing comma. 2015-02-06 12:58:45 +01:00
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/.