1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests
Daniel Wiesmann bbfad84dd9 Fixed #25588 -- Added spatial lookups to RasterField.
Thanks Tim Graham for the review.
2016-05-06 09:17:18 -04:00
..
absolute_url_overrides Fixed #26125 -- Fixed E731 flake warnings. 2016-01-25 14:23:43 -05:00
admin_autodiscover
admin_changelist Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
admin_checks Refs #24227 -- Replaced M2M isinstance checks by field.many_to_many 2016-03-19 09:24:27 +01:00
admin_custom_urls Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
admin_docs Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
admin_filters Changed gypsy to manouche in docs and tests. 2016-02-03 09:45:30 -05:00
admin_inlines Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
admin_ordering
admin_registration Used assertIsInstance in admin_registration tests. 2016-03-24 19:20:31 -04:00
admin_scripts Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
admin_utils Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
admin_views Fixed #26558 -- Removed need for request context processor on admin login page. 2016-05-04 09:43:24 -04:00
admin_widgets Fixed #26575 -- Disabled SelectFilter buttons when inactive. 2016-05-03 13:09:07 -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 E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
annotations Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
app_loading Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
apps Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
auth_tests Refs #25847 -- Added system check for UserModel.is_anonymous/is_authenticated methods. 2016-05-06 08:56:06 -04:00
backends Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
base
bash_completion Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
basic Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
builtin_server
bulk_create Refs #19527 -- Allowed QuerySet.bulk_create() to set the primary key of its objects. 2016-03-02 14:29:09 -05:00
cache Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
check_framework Fixed #26440 -- Added a warning for non-url()s in urlpatterns. 2016-04-30 20:09:31 -04:00
choices
conditional_processing
contenttypes_tests Refs #26085, #11505 -- Cleared Site cache in contenttypes_tests. 2016-04-19 09:21:27 -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 #26094 -- Fixed CSRF behind a proxy (settings.USE_X_FORWARDED_PORT=True). 2016-01-20 18:19:24 -05:00
custom_columns Refs #26022 -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
custom_lookups
custom_managers Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
custom_methods
custom_migration_operations
custom_pk Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
datatypes Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
dates Refs #26022 -- Replaced six.assertRaisesRegex with assertRaisesMessage as appropriate. 2016-01-29 13:37:33 -05:00
datetimes
db_functions Fixed #24932 -- Added Cast database function. 2016-03-29 08:14:33 -04:00
db_typecasts Fixed #26498 -- Fixed TimeField microseconds round-tripping on MySQL and SQLite. 2016-04-18 09:39:46 -04:00
dbshell
decorators
defer Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 2016-04-29 13:06:32 -04:00
defer_regress Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 2016-04-29 13:06:32 -04:00
delete Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
delete_regress
deprecation Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
dispatch
distinct_on_fields Refs #26022 -- Used context manager version of assertRaisesMessage in tests. 2016-01-29 13:03:39 -05:00
empty
expressions Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
expressions_case Sorted single letter imports per the latest version of isort. 2016-03-28 11:45:31 -04:00
extra_regress Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
field_deconstruction
field_defaults
field_subclassing
file_storage Fixed #26058 -- Delegated os.path bits of FileField's filename generation to the Storage. 2016-04-30 17:22:40 -04:00
file_uploads Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
files Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
fixtures Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
fixtures_model_package
fixtures_regress Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
flatpages_tests Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
force_insert_update
foreign_object Refs #16508 -- Renamed the current "virtual" fields to "private". 2016-04-13 10:10:53 -04:00
forms_tests Refs #15667 -- Removed choices argument from some RendererMixin methods. 2016-04-28 18:48:52 -04:00
from_db_value
generic_inline_admin Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
generic_relations Refs #16508 -- Added invalidation of stale cached instances of GenericForeignKey targets. 2016-05-03 09:29:05 -04:00
generic_relations_regress Sorted single letter imports per the latest version of isort. 2016-03-28 11:45:31 -04:00
generic_views Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04: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 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 #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
gis_tests Fixed #25588 -- Added spatial lookups to RasterField. 2016-05-06 09:17:18 -04:00
handlers Fixed #26546 -- Allowed HTTPStatus enum values for HttpResponse.status. 2016-04-29 10:55:01 -04:00
http_utils Fixed #26052 -- Moved conditional_content_removal() processing to the test client. 2016-04-25 07:56:07 -04:00
httpwrappers Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
humanize_tests Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
i18n Fixed #26341 (again) -- Addressed multiple occurrences per line use case 2016-05-02 19:39:56 +02:00
import_error_package
indexes Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
inline_formsets Fixed #21332, #26538 -- Fixed inconsistent and duplicate form fields on inline formsets. 2016-04-26 10:26:25 -04:00
inspectdb Fixed #25658 -- Allowed inspectdb to inspect a specific set of tables. 2016-03-18 08:41:15 -04:00
introspection Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
invalid_models_tests Fixed #26320 -- Deprecated implicit OneToOnField parent_link. 2016-04-22 12:59:41 -04:00
known_related_objects
logging_tests Fixed #26504 -- Avoided logging "Not Found" warnings if a middleware handles the 404. 2016-04-20 21:02:05 -04:00
lookup Fixed #26285 -- Deprecated the MySQL-specific __search lookup. 2016-03-02 14:41:56 -05:00
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_regress
m2m_signals
m2m_through Refs #26092 -- Added @skipUnlessDBFeature to a test. 2016-01-21 08:05:55 -05:00
m2m_through_regress Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
m2o_recursive
mail Fixed #22561 -- Prevented too long lines in email messages 2016-04-19 09:35:24 +02:00
managers_regress
many_to_many Fixed #26176 -- Fixed E123 flake8 warnings. 2016-02-05 15:11:07 -05:00
many_to_one Fixed #26179 -- Removed null assignment check for non-nullable foreign key fields. 2016-02-11 10:07:39 -05:00
many_to_one_null Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
max_lengths
messages_tests Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
middleware Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
middleware_exceptions Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
migrate_signals Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
migration_test_data_persistence
migrations Fixed #26555 -- Gave deconstructible objects a higher priority during serialization 2016-05-04 22:39:19 +02:00
migrations2
model_fields Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup() 2016-05-04 20:02:01 +02:00
model_forms Fixed docstring typos. 2016-05-02 11:43:03 -04:00
model_formsets Fixed #22383 -- Added support for HTML5 required attribute on required form fields. 2016-04-21 19:16:38 -04:00
model_formsets_regress
model_inheritance Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
model_inheritance_regress Fixed #26320 -- Deprecated implicit OneToOnField parent_link. 2016-04-22 12:59:41 -04:00
model_meta Refs #16508 -- Renamed the current "virtual" fields to "private". 2016-04-13 10:10:53 -04:00
model_options Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
model_package
model_permalink
model_regress Refs #24007 -- 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 Fixed #22383 -- Added support for HTML5 required attribute on required form fields. 2016-04-21 19:16:38 -04:00
multiple_database Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
mutually_referential
nested_foreign_keys
no_models
null_fk
null_fk_ordering
null_queries Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
one_to_one Fixed #26179 -- Removed null assignment check for non-nullable foreign key fields. 2016-02-11 10:07:39 -05:00
or_lookups Fixed W503 flake8 warnings. 2016-04-04 17:14:26 -04:00
order_with_respect_to
ordering Correct a grammatical error: "it's related model" 2016-03-09 20:40:17 -08:00
pagination Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
postgres_tests Fixed #26542 -- Fixed quoting in CreateExtension operation. 2016-04-27 09:30:55 -04:00
prefetch_related Refs #26565 -- Errored nicely when using Prefetch with a values() queryset. 2016-05-03 09:28:31 -04:00
project_template Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
properties Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
proxy_model_inheritance
proxy_models Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
queries Fixed #22936 -- Obsoleted Field.get_prep_lookup()/get_db_prep_lookup() 2016-05-04 20:02:01 +02:00
queryset_pickle
raw_query Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
redirects_tests Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
requests Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
requirements Refs #26033 -- Added password hasher support for Argon2 v1.3. 2016-04-25 21:17:53 -04:00
reserved_names Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
resolve_url
responses Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
reverse_lookup Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
save_delete_hooks
schema Normalized "an SQL" spelling. 2016-05-03 19:30:48 -04:00
select_for_update Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
select_related Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -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 E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
serializers Fixed #26320 -- Deprecated implicit OneToOnField parent_link. 2016-04-22 12:59:41 -04:00
servers Refs #25684 -- Silenced logging output in servers tests. 2016-02-08 11:14:27 -05:00
sessions_tests Fixed #26520 -- Fixed a regression where SessionBase.pop() didn't return a KeyError. 2016-04-20 13:06:47 -04:00
settings_tests Fixed #26427 -- Ensured deleted setting doesn't appear in dir(settings) 2016-04-23 16:01:16 +02:00
shell
shortcuts Removed unused view and url from shortcuts tests. 2016-04-12 07:54:34 -04:00
signals Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
signed_cookies_tests Refs #26022 -- Used context manager version of assertRaises in tests. 2016-01-29 12:32:18 -05:00
signing Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
sitemaps_tests Added missing backslash in sitemaps_tests urls. 2016-03-09 10:07:01 -05:00
sites_framework Refs #24227 -- Replaced M2M isinstance checks by field.many_to_many 2016-03-19 09:24:27 +01:00
sites_tests Fixed #26446 -- Added additional tests to cover methods in the RequestSite class 2016-04-03 13:07:57 +02:00
staticfiles_tests Fixed #20189 -- Allowed customizing staticfiles ignored_patterns list 2016-04-22 09:56:06 +02:00
str
string_lookup
swappable_models
syndication_tests Made multiline assertRaises* conform to flake8's E128 rule. 2016-02-04 19:14:10 -05:00
template_backends
template_loader Fixed #26109 -- Raised a helpful error if loader.select_tamplate() is passed a string. 2016-01-25 18:37:02 -05:00
template_tests Refs #26479 -- Documented is/is not if tag operator behavior for nonexistent variables. 2016-04-29 12:38:46 -04:00
templates Changed action="." to action="" in tests and docs. 2016-01-21 13:59:15 -05:00
test_client Refs #26428 -- Added support for relative path redirects to the test client. 2016-04-29 09:15:28 -04:00
test_client_regress Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -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 E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
test_utils Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
timezones Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
transaction_hooks
transactions Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
unmanaged_models
update Sorted single letter imports per the latest version of isort. 2016-03-28 11:45:31 -04:00
update_only_fields Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
urlpatterns_reverse Fixed #25847 -- Made User.is_(anonymous|authenticated) properties. 2016-04-09 14:54:18 -04:00
user_commands Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
utils_tests Fixed #26281 -- Added a helpful error message for an invalid format specifier to dateformat.format(). 2016-04-20 20:13:52 -04:00
validation Fixed #26528 -- Allowed any iterable (e.g. tuple) as validators kwarg for form/model fields. 2016-04-22 09:38:47 +07:00
validators Fixed #26204 -- Reallowed dashes in top-level domains for URLValidator. 2016-02-18 19:06:49 -05:00
version
view_tests Fixed #19567 -- Added JavaScriptCatalog and JSONCatalog class-based views 2016-04-15 17:28:54 +02:00
wsgi Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04:00
.coveragerc
README.rst
runtests.py Fixed E128 flake8 warnings in tests/. 2016-04-08 10:12:33 -04: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/.