1
0
mirror of https://github.com/django/django.git synced 2024-12-28 12:06:22 +00:00
django/tests
Markus Holtermann bff446c205 [1.8.x] Fixed #24435 -- Prevented m2m field removal and addition in migrations when changing blank
Thanks Mark Tranchant for the report and Tim Graham for the test and
review.

Backport of a9e29fae10 from master
2015-03-04 15:44:38 +01:00
..
absolute_url_overrides
admin_autodiscover [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_changelist [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_checks [1.8.x] Fixed #24146 -- Allowed model._meta.get_field() to be used after apps.models_ready 2015-02-10 19:55:42 -05:00
admin_custom_urls [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_docs [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_filters [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_inlines [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_ordering [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_registration [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_scripts [1.8.x] Guaranteed removal of temporary files during tests. 2015-02-23 15:26:26 -05:00
admin_utils [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_validation [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
admin_views [1.8.x] Normalized usage of the tempfile module. 2015-02-23 15:26:35 -05:00
admin_widgets [1.8.x] Refs #14497 -- Handled empty readonly admin FileFields 2015-02-11 13:01:25 -05:00
aggregation [1.8.x] Refs #14030 -- Added tests for Value aggregates 2015-02-13 11:24:25 +11:00
aggregation_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
annotations [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
app_loading [1.8.x] Silenced deprecation warning in refs #24287 test. 2015-02-09 12:34:23 -05:00
apps [1.8.x] Refs #24324 -- Fixed Python 2 test failures when path to Django source contains non-ASCII characters. 2015-02-17 19:05:31 -05:00
auth_tests [1.8.x] Isolated auth_tests from contenttypes_tests; refs #11505. 2015-02-14 22:36:49 -05:00
backends [1.8.x] Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for contrib.postgres). 2015-02-17 06:21:59 -05:00
base
bash_completion Replaced sqlall in some bash_completion/admin_scripts tests. 2014-12-26 18:52:26 -05:00
basic [1.8.x] Fixed #24418 -- Prevented crash in refresh_from_db with null fk 2015-02-27 20:25:12 +01:00
builtin_server [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
bulk_create [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
cache [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:55:50 +07:00
check_framework [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
choices [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
commands_sql Fixed a couple of allow_migrate routers in tests. 2015-02-21 21:44:05 +07:00
commands_sql_migrations [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
conditional_processing [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
contenttypes_tests [1.8.x] Moved contrib.contenttypes tests out of contrib. 2015-02-16 18:06:13 -05:00
context_processors [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
createsuperuser
csrf_tests [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
custom_columns [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
custom_lookups [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
custom_managers [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
custom_methods
custom_migration_operations Fixed #24093 -- Prevented MigrationWriter to write operation kwargs that are not explicitly deconstructed 2015-01-07 17:29:20 -07:00
custom_pk [1.8.x] Update converters to take a consistent set of parameters. 2015-02-20 11:47:48 +00:00
datatypes
dates [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
datetimes [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
db_functions [1.8.x] Refs #14030 -- Improved expression support for python values 2015-02-12 08:53:03 +11:00
db_typecasts [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
dbshell
decorators [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
defer [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
defer_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
delete [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
delete_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
deprecation [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
dispatch [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
distinct_on_fields [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
empty
expressions [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
expressions_case [1.8.x] Refs #14030 -- Improved expression support for python values 2015-02-12 08:53:03 +11:00
extra_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
field_deconstruction Applied ignore_warnings to Django tests 2014-12-30 18:16:25 +01:00
field_defaults
field_subclassing [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
file_storage [1.8.x] Guaranteed removal of temporary files during tests. 2015-02-23 15:26:26 -05:00
file_uploads [1.8.x] Normalized usage of the tempfile module. 2015-02-23 15:26:35 -05:00
files [1.8.x] Guaranteed removal of temporary files during tests. 2015-02-23 15:26:26 -05:00
fixtures [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
fixtures_migration [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
fixtures_model_package
fixtures_regress [1.8.x] Refs #24324 -- Skipped fixtures_regress tests that fail on Python 2 on a non-ASCII path. 2015-02-18 07:36:02 -05:00
flatpages_tests [1.8.x] Fixed typos in flatpages_tests comments. 2015-02-24 06:31:59 -05:00
force_insert_update [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
foreign_object [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
forms_tests [1.8.x] Fixed #24391 -- Made BoundField.value() cache callable values. 2015-02-24 20:05:16 -05:00
from_db_value [1.8.x] Update converters to take a consistent set of parameters. 2015-02-20 11:47:48 +00:00
generic_inline_admin [1.8.x] Deprecated TEMPLATE_DEBUG setting. 2015-02-15 20:48:48 +01:00
generic_relations [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
generic_relations_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
generic_views [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
get_earliest_or_latest [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
get_object_or_404 [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
get_or_create [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
gis_tests [1.8.x] Normalized usage of the tempfile module. 2015-02-23 15:26:35 -05:00
handlers [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
http_utils [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
httpwrappers [1.8.x] Fixed #20889 -- Prevented BadHeaderError when Python inserts newline 2015-02-19 20:19:38 +01:00
humanize_tests [1.8.x] Moved contrib.humanize tests out of contrib. 2015-02-11 11:55:53 -05:00
i18n [1.8.x] Fixed #24413 -- Prevented translation fallback for English 2015-02-28 10:09:01 +01:00
import_error_package [1.8.x] Refactored tests that rely on an ImportError for Python 3.5 compatibility 2015-02-03 18:31:17 -05:00
indexes [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
initial_sql_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
inline_formsets [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
inspectdb Fixed #23891 -- Moved deprecation of IPAddressField to system check framework. 2015-01-01 13:30:52 -05:00
introspection [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
invalid_models_tests [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
known_related_objects [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
logging_tests [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
lookup [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
m2m_and_m2o [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
m2m_intermediary [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
m2m_multiple
m2m_recursive
m2m_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
m2m_signals [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
m2m_through [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
m2m_through_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
m2o_recursive
mail [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
managers_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
many_to_many
many_to_one [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
many_to_one_null
max_lengths [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
messages_tests [1.8.x] Moved contrib.messages tests out of contrib. 2015-02-11 11:55:05 -05:00
middleware [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
middleware_exceptions [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
migrate_signals [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
migration_test_data_persistence [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
migrations [1.8.x] Fixed #24435 -- Prevented m2m field removal and addition in migrations when changing blank 2015-03-04 15:44:38 +01:00
migrations2
model_fields [1.8.x] Guaranteed removal of temporary files during tests. 2015-02-23 15:26:26 -05:00
model_forms [1.8.x] Guaranteed removal of temporary files during tests. 2015-02-23 15:26:26 -05:00
model_formsets [1.8.x] Fixed #24395 -- Ensured inline ModelsForms have an updated related instance. 2015-02-24 11:49:27 -05:00
model_formsets_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
model_inheritance [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
model_inheritance_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
model_meta [1.8.x] Fixed #24328 -- cleaned up Options._get_fields() implementation 2015-02-20 13:11:59 -05:00
model_options [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
model_package [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
model_permalink [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
model_regress [1.8.x] Normalized usage of the tempfile module. 2015-02-23 15:26:35 -05:00
model_validation [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
modeladmin [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
multiple_database Fixed a couple of allow_migrate routers in tests. 2015-02-21 21:44:05 +07:00
mutually_referential
nested_foreign_keys [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
no_models
null_fk [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
null_fk_ordering [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
null_queries [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
one_to_one [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
or_lookups
order_with_respect_to [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
ordering [1.8.x] Refs #24060 -- Added a test demonstrating reverse order isn't mutable 2015-01-28 11:03:25 +11:00
pagination [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
postgres_tests [1.8.x] Fixed #24341 -- Added specific error messages to RangeField subclasses 2015-02-20 16:50:41 -05:00
prefetch_related [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
project_template Added a test to verify headers set by default middleware; refs #23939. 2014-12-03 13:47:23 -05:00
properties
proxy_model_inheritance [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
proxy_models [1.8.x] Fixed #24328 -- cleaned up Options._get_fields() implementation 2015-02-20 13:11:59 -05:00
queries [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
queryset_pickle [1.8.x] Fixed #24381 -- removed ForeignObjectRel opts and to_opts 2015-02-23 07:26:10 -05:00
raw_query [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
redirects_tests [1.8.x] Moved contrib.redirects tests out of contrib. 2015-02-11 11:55:40 -05:00
requests [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
requirements [1.8.x] Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for contrib.postgres). 2015-02-17 06:21:59 -05:00
reserved_names
resolve_url [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
responses Fixed #23977 -- Added setdefault() method to HttpResponse 2014-12-11 13:56:56 -05:00
reverse_lookup [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
save_delete_hooks
schema [1.8.x] Fixed #24307: Avoided redundant column nullability modifications on Oracle 2015-02-19 02:44:08 +02:00
select_for_update [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
select_related [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
select_related_onetoone [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
select_related_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
serializers [1.8.x] Update converters to take a consistent set of parameters. 2015-02-20 11:47:48 +00:00
serializers_regress [1.8.x] Fixed #24320 - Used field.value_to_string() in serialization of foreign key. 2015-02-13 12:45:35 -05:00
servers [1.8.x] Fixed typo in django.core.servers.basehttp message. 2015-02-19 19:37:22 -05:00
sessions_tests [1.8.x] Moved contrib.sessions tests out of contrib. 2015-02-11 11:54:51 -05:00
settings_tests [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
shortcuts [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
signals
signed_cookies_tests Fixed #23792 -- Added test.utils.freeze_time() context manager. 2014-12-22 07:46:40 -05:00
signing [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sitemaps_tests [1.8.x] Fixed #24345 -- Isolated sitemaps_tests from contenttypes_tests; refs #11505 2015-02-16 08:43:06 -05:00
sites_framework [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
sites_tests [1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate(). 2015-02-20 21:55:50 +07:00
staticfiles_tests [1.8.x] Guaranteed removal of temporary files during tests. 2015-02-23 15:26:26 -05:00
str
string_lookup [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
swappable_models [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
syndication_tests [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
template_backends [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
template_loader [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
template_tests [1.8.x] Cleaned up template directory handling in template tests. 2015-02-24 09:22:25 -05:00
templates [1.8.x] Cleaned up template loader tests. 2015-02-24 08:59:05 -05:00
test_client [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_client_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
test_discovery_sample
test_discovery_sample2
test_exceptions
test_runner [1.8.x] Refs #24324 -- Fixed Python 2 test failures when path to Django source contains non-ASCII characters. 2015-02-17 19:05:31 -05:00
test_runner_deprecation_app
test_utils [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
timezones [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
transactions [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
unmanaged_models [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
update [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
update_only_fields [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
urlpatterns_reverse [1.8.x] Fixed #17716 -- Prevented include('...', app_name='...') without a namespace. 2015-02-12 08:19:10 -05:00
user_commands [1.8.x] Prevented some test commands from needlessly running system checks. 2015-02-11 10:17:53 -05:00
utils_tests [1.8.x] Normalized usage of the tempfile module. 2015-02-23 15:26:35 -05:00
validation [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
validators [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
version
view_tests [1.8.x] Normalized usage of the tempfile module. 2015-02-23 15:26:35 -05:00
webdesign_tests [1.8.x] Moved contrib.webdesign tests out of contrib. 2015-02-11 12:35:32 -05:00
wsgi [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
.coveragerc
README.rst Fixed #23289 -- Added mock as a test dependency. 2014-12-01 16:08:25 -05:00
runtests.py [1.8.x] Guaranteed removal of temporary files during tests. 2015-02-23 15:26:26 -05: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/.