1
0
mirror of https://github.com/django/django.git synced 2024-12-28 12:06:22 +00:00
django/tests
Anssi Kääriäinen 70ff455a35 [1.8.x] Fixed #24615 -- ordering by expression not part of SELECT
Fixed queries where an expression was used in order_by() but the
expression wasn't in the query's select clause (for example the
expression could be masked by .values() call)

Thanks to Trac alias MattBlack85 for the report.
Backport of fb5c7748da from master.
2015-04-16 09:42:42 +02: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] Refs #24625 -- Filtered docutils warnings output in tests 2015-04-14 11:27:57 +02: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] Fixed #24571 -- Restored testserver positional arguments parsing 2015-04-04 10:48:40 +02: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] Added test for LogEntry.get_edited_object(); refs #24244. 2015-03-23 08:52:32 -04: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] Fixed #24171 -- Fixed failure with complex aggregate query and expressions 2015-03-09 07:51:05 -04:00
annotations [1.8.x] Fixed backport of refs #24485 tests. 2015-03-22 16:14:15 -04: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 #24584 -- Fixed microsecond handling with older MySQLdb 2015-04-06 22:45:36 +02: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] Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed. 2015-03-18 19:12:46 -04: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 Fixed #24485 -- Allowed combined expressions to set output_field 2015-03-22 17:41:12 +11:00
expressions_case [1.8.x] Fixed #24420 -- Allowed ordering by case expressions 2015-03-06 13:31:43 +11:00
extra_regress [1.8.x] Sorted imports with isort; refs #23860. 2015-02-09 14:24:06 -05:00
field_deconstruction [1.8.x] Refs #24483 -- Added a test for deconstruction of Field.choices 2015-03-18 13:56:33 -04: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] Prevented some tests from writing in the CWD. 2015-03-07 10:40:17 -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] Adapted form regression test to new translations 2015-04-01 19:53:11 +02: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] Fixed #24615 -- ordering by expression not part of SELECT 2015-04-16 09:42:42 +02: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 #24569 -- Made some translation functions accept None value 2015-04-04 10:58:54 +02: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] Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed. 2015-03-18 19:12:46 -04: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 #24513 -- Made sure a model is only rendered once during reloads 2015-04-07 14:56:33 +02:00
migrations2
model_fields [1.8.x] Fixed model_fields tests to use django TestCase. 2015-04-15 08:19:55 -04: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] Fixed mistakes in tests unveiled by version bump to 1.8.1. 2015-04-02 07:01:42 -04: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] Fixed #24578 -- Fixed crash with QuerySet.update() on FK to O2O fields. 2015-04-09 08:24:07 -04: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 mistakes in tests unveiled by version bump to 1.8.1. 2015-04-02 07:01:42 -04: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 #24447 -- Made migrations add FK constraints for existing columns 2015-03-07 14:15:27 +01: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] Fixed sessions test on Python 3.5; refs #23763. 2015-03-31 08:41:31 -04: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 Added a test for model pre/post_init signals. 2014-11-21 10:39:37 -05:00
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 #24488 -- Made create_default_site() use default pk of 1. 2015-03-16 13:31:22 -04: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] Refs #24538 -- Simplified a test per Aymeric's feedback. 2015-04-01 13:19:57 -04: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] Fixed #23441, #24555 -- Improved the behavior of InclusionNode. 2015-04-01 13:12:18 -04: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 Fixed #23742 -- Added an option to reverse tests order. 2014-11-24 19:24:11 -05:00
test_exceptions Reduced reduce() usage; refs #23796. 2014-11-20 14:31:14 -05:00
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 #13525 -- Added tests and docs for nested parameters in URL patterns. 2015-03-23 08:43:58 -04: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] Fixed #24469 -- Refined escaping of Django's form elements in non-Django templates. 2015-03-27 20:01:41 -04: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 Removed nonexistent module django.test._doctest from coveragerc. 2014-11-19 06:01:39 -05:00
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/.