1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00
django/tests
Tai Lee 69f7db153d Fixed #16436 -- defer + annotate + select_related crash
Correctly calculate the ``aggregate_start`` offset from loaded fields,
if any are deferred, instead of ``self.query.select`` which includes all
fields on the model.

Also made some PEP 8 fixes.
2013-05-30 08:46:31 +03:00
..
admin_changelist Fixed a failure on Python 3 introduced by 5939864616. 2013-05-29 15:38:52 -04:00
admin_custom_urls Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
admin_docs Fixed #20126 -- XViewMiddleware moved to django.contrib.admindocs.middleware 2013-05-19 13:18:35 +02:00
admin_filters Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
admin_inlines Fixed #19838 -- Admin: Don't leak a 500 HTTP status when trying to delete protected FKs. 2013-03-04 13:30:59 -03:00
admin_ordering Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
admin_registration Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
admin_scripts Fixed #20445 -- Raised original exception after command error 2013-05-20 18:59:37 +02:00
admin_util Fixed #11725 -- Made possible to create widget label tag without "for" 2013-05-25 15:31:07 +02:00
admin_validation Fixed #12674 -- provide a way to override admin validation 2013-05-19 12:42:52 +02:00
admin_views Fixed #20331 -- Allowed admin actions to serve StreamingHttpResponses 2013-05-29 11:25:42 -04:00
admin_widgets Made fix for #9321 less buggy and more effective. 2013-05-23 07:49:29 -03:00
aggregation Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
aggregation_regress Fixed random aggregation_regress test_more_more_more() failure 2013-05-28 08:55:04 +03:00
app_loading Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
backends Fixed #20474 -- Proxied and deprecated django.db.backend 2013-05-23 15:19:12 +02:00
base add comment to explain why it's necessary to do an explicit check for 2013-05-19 10:36:04 +02:00
bash_completion Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
basic Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
bug639 Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and added '__all__' shortcut 2013-05-09 16:44:36 +01:00
bug8245 Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
builtin_server Fixed #18972 -- Refactored bundled wsgi server's chunking algorithm. 2013-03-20 18:46:26 -04:00
bulk_create Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
cache Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
choices Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
commands_sql Fixed #15697 -- Made sqlindexes aware of auto-created tables 2013-05-29 15:50:26 +02:00
comment_tests Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
conditional_processing Move last remaining tests out of models.py files; prep for test discovery. 2013-04-02 19:00:55 -06:00
contenttypes_tests Deprecated django.views.defaults.shortcut. 2013-03-14 20:30:23 +01:00
context_processors Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
createsuperuser Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
csrf_tests Fixed #19436 -- Don't log warnings in ensure_csrf_cookie. 2013-05-18 16:17:46 +02:00
custom_columns Refs #18586 -- Split out long custom_columns lookup test into multiple tests. 2013-03-19 15:58:54 -07:00
custom_columns_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
custom_managers Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
custom_managers_regress Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
custom_methods Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
custom_pk Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
datatypes Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
dates Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
datetimes Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
db_typecasts Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
decorators Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
defaultfilters Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
defer Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
defer_regress Fixed #16436 -- defer + annotate + select_related crash 2013-05-30 08:46:31 +03:00
delete Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
delete_regress Made transaction.managed a no-op and deprecated it. 2013-03-11 14:48:53 +01:00
deprecation Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
dispatch Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
distinct_on_fields Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
empty Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
expressions Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
expressions_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
extra_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
field_defaults Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
field_subclassing Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
file_storage Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
file_uploads Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
files Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
fixtures Fixed fixtures testing failure 2013-05-19 20:53:49 +03:00
fixtures_model_package Fixed fixtures testing failure 2013-05-19 20:53:49 +03:00
fixtures_regress fix warnings imports in fixtures tests 2013-05-19 12:49:03 +02:00
force_insert_update Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
foreign_object Fixed #17582 - Added message to DoesNotExist exceptions. 2013-05-27 07:57:06 -04:00
forms_tests Replaced and...or... constructs with PEP 308 conditional expressions. 2013-05-26 23:47:50 -03:00
generic_inline_admin Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
generic_relations Fixed #17648 -- Add for_concrete_model to GenericForeignKey. 2013-05-23 19:03:14 -04:00
generic_relations_regress Fixed #20378 -- regression in GenericRelation on abstract model 2013-05-20 18:02:10 +03:00
generic_views Fixed #20478 – Added support for HTTP PATCH method in generic views. 2013-05-22 14:48:11 +02:00
get_earliest_or_latest Fixed #19326 -- Added first() and last() methods to QuerySet 2013-05-21 18:52:28 +03:00
get_object_or_404 Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
get_or_create Fixed #16137 - Removed kwargs requirement for QuerySet.get_or_create 2013-05-27 10:01:14 -04:00
get_or_create_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
handlers Fixed #19866 -- Added security logger and return 400 for SuspiciousOperation. 2013-05-25 16:27:34 -07:00
http_utils Fixed a Python 2.6 regression (GzipFile can't act as a context manager) 2013-05-21 13:18:53 +02:00
httpwrappers Implemented persistent database connections. 2013-02-28 15:28:13 +01:00
i18n Fixed #14825 -- LocaleMiddleware keeps language 2013-05-25 10:52:54 +02:00
indexes Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
initial_sql_regress Added regression test for custom SQL containing percents 2013-03-26 23:19:32 +01:00
inline_formsets Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and added '__all__' shortcut 2013-05-09 16:44:36 +01:00
inspectdb Fixed #16737 -- Support non-ascii column names in inspectdb 2013-04-01 19:59:57 +02:00
introspection Add introspection support for BinaryField 2013-03-02 10:29:03 +01:00
invalid_models Fixed #20484 -- Added model validation for GenericIPAddressField 2013-05-28 15:12:47 -04:00
known_related_objects Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
logging_tests Fixed #19866 -- Added security logger and return 400 for SuspiciousOperation. 2013-05-25 16:27:34 -07:00
lookup Began implementing a shared set of test models to speed up tests. 2013-03-13 23:25:26 +01:00
m2m_and_m2o Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
m2m_intermediary Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
m2m_multiple Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
m2m_recursive Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
m2m_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
m2m_signals Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
m2m_through Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
m2m_through_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
m2o_recursive Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
mail Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
managers_regress Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
many_to_many Fixed #20207 -- Handle ManyToManyField with a unicode name correctly. 2013-04-05 15:09:53 -04:00
many_to_one Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
many_to_one_null Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
many_to_one_regress Removed a test that didn't make sense; code could never be called the way the test was written. 2013-05-09 06:55:25 -07:00
max_lengths Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
middleware Fixed #20099 -- Eased subclassing of BrokenLinkEmailsMiddleware 2013-05-25 12:10:53 +02:00
middleware_exceptions Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
model_fields Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
model_forms Fixed #20228 - Documented unique_for_date and exclude behavior. 2013-05-28 10:04:07 -04:00
model_forms_regress Fixed #13546 -- Easier handling of localize field options in ModelForm 2013-05-18 14:13:00 +02:00
model_formsets Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and added '__all__' shortcut 2013-05-09 16:44:36 +01:00
model_formsets_regress Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
model_inheritance Fixed #16649 -- Refactored save_base logic 2013-03-14 11:01:47 +02:00
model_inheritance_regress Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and added '__all__' shortcut 2013-05-09 16:44:36 +01:00
model_inheritance_same_model_name Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
model_inheritance_select_related Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
model_package Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
model_permalink Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
model_regress Marked a test as an expected failure on MySQL and Python 3.2. 2013-05-08 23:12:46 +02:00
model_validation Fixes a Python 3.x regression introduced in a19e9d80 2013-05-18 18:06:31 +02:00
modeladmin Fixed #12674 -- provide a way to override admin validation 2013-05-19 12:42:52 +02:00
multiple_database Fixed a regression in router initialization 2013-05-24 20:48:02 +02:00
mutually_referential Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
nested_foreign_keys Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
null_fk Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
null_fk_ordering Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
null_queries Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
one_to_one Fixed #17582 - Added message to DoesNotExist exceptions. 2013-05-27 07:57:06 -04:00
one_to_one_regress Fixed test failures introduced in e16c48e001. 2013-03-24 15:27:50 +01:00
or_lookups Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
order_with_respect_to Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
ordering Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
pagination Fixed #19938 -- Consumed iterator only once in paginator's Page 2013-05-25 16:27:26 +02:00
prefetch_related Fixed #20242 - Added a regression test for prefetch_related. 2013-05-28 13:37:44 -04:00
properties Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
proxy_model_inheritance Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
proxy_models Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
queries Fixed #20250 - Added a regression test for negated Q + annotate 2013-05-29 08:49:42 -04:00
queryset_pickle Fix #20158: invalid code in queryset_pickle test models. 2013-03-29 13:32:21 +01:00
raw_query Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
requests Made test introduced in 566e284c pass on Python 3. 2013-05-18 13:34:52 +02:00
reserved_names Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
resolve_url Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
responses Fixed #12747 -- Made reason phrases customizable. 2013-05-19 13:14:54 +02:00
reverse_lookup Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
reverse_single_related Fixed #15363 -- Renamed and normalized to get_queryset the methods that return a QuerySet. 2013-03-08 10:11:45 -05:00
save_delete_hooks Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
select_for_update Made transaction.managed a no-op and deprecated it. 2013-03-11 14:48:53 +01:00
select_related Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
select_related_onetoone Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
select_related_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
serializers Made transaction.managed a no-op and deprecated it. 2013-03-11 14:48:53 +01:00
serializers_regress Fixed #19934 - Use of Pillow is now preferred over PIL. 2013-05-14 19:32:04 -07:00
servers Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
settings_tests Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
shared_models Began implementing a shared set of test models to speed up tests. 2013-03-13 23:25:26 +01:00
signals Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
signals_regress Began implementing a shared set of test models to speed up tests. 2013-03-13 23:25:26 +01:00
signed_cookies_tests Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
signing Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
sites_framework Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
staticfiles_tests Fixed #18986 -- Improved error message for missing files 2013-04-28 16:45:05 +02:00
str Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
string_lookup Fixed #11442 -- Postgresql backend casts all inet types to text 2013-05-19 13:28:09 +02:00
swappable_models Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
syncdb_signals Removed noise from pre_syncdb signal tests 2013-05-23 15:58:08 -04:00
syndication Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
tablespaces Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
template_tests Fixed #20246 -- Added non-breaking spaces between values an units 2013-05-18 23:01:48 +02:00
templates Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
test_client Fixed #11603 - Added django.test.SimpleTestCase.assertFormsetError 2013-05-27 12:25:35 -04:00
test_client_regress Fixed #11603 - Added django.test.SimpleTestCase.assertFormsetError 2013-05-27 12:25:35 -04:00
test_discovery_sample Fixed #17365, #17366, #18727 -- Switched to discovery test runner. 2013-05-10 23:08:45 -04:00
test_discovery_sample2 Fixed #17365, #17366, #18727 -- Switched to discovery test runner. 2013-05-10 23:08:45 -04:00
test_runner Fixed #20437 - marked a test-runner test as expected-fail under certain conditions. 2013-05-20 01:56:23 -04:00
test_runner_deprecation_app Fixed #17365, #17366, #18727 -- Switched to discovery test runner. 2013-05-10 23:08:45 -04:00
test_runner_invalid_app Fixed #17365, #17366, #18727 -- Switched to discovery test runner. 2013-05-10 23:08:45 -04:00
test_suite_override Modified test_client_override to work with unittest2 discovery. 2013-04-12 15:05:34 -06:00
test_utils Used a Python 3 compatible StringIO in test_utils 2013-04-13 11:38:13 +02:00
text Fixed #20231 -- Don't use allow_lazy on smart_split 2013-04-10 13:05:29 +02:00
timezones Fixed #19733 - deprecated ModelForms without 'fields' or 'exclude', and added '__all__' shortcut 2013-05-09 16:44:36 +01:00
transactions Moved IgnorePendingDeprecationWarningsMixin in django.test.utils. 2013-05-18 16:49:15 +02:00
transactions_regress Moved IgnorePendingDeprecationWarningsMixin in django.test.utils. 2013-05-18 16:49:15 +02:00
unmanaged_models Use assertIsInstance in tests. 2013-05-21 10:42:15 +01:00
update Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
update_only_fields Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
urlpatterns_reverse Fixed #19866 -- Added security logger and return 400 for SuspiciousOperation. 2013-05-25 16:27:34 -07:00
user_commands Made (make|compile)messages check for availability of gettext commands. 2013-03-10 17:31:11 -03:00
utils_tests Fixed #20296 -- Allowed SafeData and EscapeData to be lazy 2013-05-25 16:06:44 +02:00
validation Fixed #20484 -- Added model validation for GenericIPAddressField 2013-05-28 15:12:47 -04:00
validators Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
version Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
view_tests Fixed #6412 -- More details if a template file cannot be loaded 2013-05-21 16:59:40 +02:00
wsgi Implemented persistent database connections. 2013-02-28 15:28:13 +01:00
.coveragerc Adjusted coveragerc 2013-02-26 14:36:57 +01:00
runtests.py Fixed a regression in the test runner loading of runtests.py. 2013-05-11 15:47:40 +02:00
test_sqlite.py Updated an inaccurate comment. 2013-02-26 10:00:14 +01:00
urls.py Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00