1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests
Loic Bistuer 31fadc1202 Fixed #20625 -- Chainable Manager/QuerySet methods.
Additionally this patch solves the orthogonal problem that specialized
`QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet`
type. This wasn't an issue until now because we didn't officially support
custom `QuerySet` but it became necessary with the introduction of this new
feature.

Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham
for the reviews.
2013-07-26 12:41:27 +03:00
..
admin_changelist Fixed #19080 -- Fine-grained control over select_related in admin 2013-06-05 23:08:00 +02: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 #13696 -- ensured inline pk field is rendered 2013-07-21 13:06:11 -04: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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
admin_util Fixed #18134 -- BoundField.label_tag now includes the form's label_suffix 2013-06-10 14:23:15 -04:00
admin_validation Fixed #12674 -- provide a way to override admin validation 2013-05-19 12:42:52 +02:00
admin_views Fixed #13629 -- Added CSS classes to the <body> tag of some admin templates to allow style customizations per app or per model. 2013-07-21 20:17:14 +00:00
admin_widgets Fixed #20663 -- "Today" and "now" admin shortcuts. 2013-07-09 23:04:33 +02:00
aggregation Fixed #20782 -- qs.values().aggregate() failure 2013-07-23 11:38:38 +03:00
aggregation_regress Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
app_loading Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
backends Avoided transaction.set_autocommit in tests. 2013-07-09 21:41:30 +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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
basic Fixed #20625 -- Chainable Manager/QuerySet methods. 2013-07-26 12:41:27 +03:00
bug639 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
bug8245 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
builtin_server Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
bulk_create Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
cache Fixed a few more imports of django.utils.unittest. 2013-07-01 22:49:07 +02:00
check Fixed #20653 -- Renamed checksetup management command. 2013-06-25 09:37:54 +08: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 Fixed #20625 -- Chainable Manager/QuerySet methods. 2013-07-26 12:41:27 +03: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_backends Fixed #13813 -- Comparison of DatabaseWrappers doesn't raise errors. 2013-07-08 09:35:08 +10:00
db_typecasts Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
decorators Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
defaultfilters Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
defer Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
defer_regress Fixed #16436 -- Oracle defer_regress test failure 2013-05-31 10:11:15 +03:00
delete Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
delete_regress Defined available_apps in relevant tests. 2013-06-10 11:30:01 +02:00
deprecation Advanced deprecation warnings for Django 1.7. 2013-06-29 18:49:37 +02:00
dispatch Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02: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_deconstruction Ported over Field.deconstruct() from my schema alteration branch. 2013-06-28 17:27:52 +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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
file_uploads Fixed #13721 -- Added UploadedFile.content_type_extra. 2013-07-11 09:11:59 -04:00
files Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
fixtures Stopped calling loaddata with commit=False. 2013-06-30 14:17:33 +02:00
fixtures_model_package Fixed #14300 -- Fixed initial SQL location if models is a package. 2013-07-24 06:56:33 -04:00
fixtures_regress Avoided transaction.set_autocommit in tests. 2013-07-09 21:41:30 +02:00
force_insert_update Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
foreign_object Fixed ._meta.pk_index() virtual field failure 2013-07-25 16:25:23 +03:00
forms_tests Fixed #20781 -- Fixed _has_changed regression with MultiValueField 2013-07-22 09:06:07 +02:00
generic_inline_admin Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
generic_relations Fixed #17927 -- Added initial values support for BaseGenericInlineFormSet 2013-06-05 07:59:59 -04:00
generic_relations_regress Fixed #20564 -- Generic relations exclude() regression 2013-06-06 01:54:46 +03:00
generic_views Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +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 #20429 -- Added QuerySet.update_or_create 2013-07-12 08:26:35 -04:00
get_or_create_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
handlers Defined available_apps in relevant tests. 2013-06-10 11:30:01 +02: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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
i18n Fixed #20311 -- Make sure makemessages doesn't create duplicate Plural-Forms .po file headers. 2013-06-22 18:45:41 -03:00
indexes Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02: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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
introspection Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
invalid_models Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
known_related_objects Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
logging_tests Fixed #20746 -- Removed Python 2.6 specific code/docs 2013-07-14 13:02:55 -04:00
lookup Fixed #20462 - Replaced the str() cast introduced in 273dc55 by force_text() 2013-06-26 21:30:58 +07: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 Defined available_apps in relevant tests. 2013-06-10 11:30:01 +02:00
m2o_recursive Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
mail Fixed #17471 -- Added smtplib.SMTP_SSL connection option for SMTP backend 2013-07-11 22:00:08 +02: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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
middleware Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
middleware_exceptions Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
model_fields Fixed #20740 -- GenericIPAddressField should pass protocol to formfield() 2013-07-12 16:05:14 -04:00
model_forms Fixed a couple form/formset deprecation warnings in tests. 2013-07-01 09:36:31 -04:00
model_forms_regress Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
model_formsets Fixed #10284 -- ModelFormSet.save(commit=False) no longer deletes objects 2013-07-23 16:21:23 -04: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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02: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 Fixed #14007 -- Added model discovery in models module without the need to specify app_label. 2013-07-16 19:32:30 -04:00
model_permalink Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00
model_regress Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
model_validation Fixes a Python 3.x regression introduced in a19e9d80 2013-05-18 18:06:31 +02:00
modeladmin Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
multiple_database Removed custom profile model functionality as per deprecation TL. 2013-06-28 21:48:16 -03: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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +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 Defined available_apps in relevant tests. 2013-06-10 11:30:01 +02:00
proxy_models Stopped calling loaddata with commit=False. 2013-06-30 14:17:33 +02:00
queries Fixed #20788 -- exclude() generated subquery failure 2013-07-23 13:40:50 +03:00
queryset_pickle Fixed #20625 -- Chainable Manager/QuerySet methods. 2013-07-26 12:41:27 +03:00
raw_query Support 'pyformat' style parameters in raw queries, Refs #10070 2013-06-28 06:59:10 +03:00
requests Isolated host validation tests in own test case 2013-07-13 10:16:52 +02:00
requirements Fixed #19196 -- Added test/requirements 2013-07-10 09:24:05 -04:00
reserved_names Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
resolve_url Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02: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 Fixed #20746 -- Removed Python 2.6 specific code/docs 2013-07-14 13:02:55 -04:00
select_related Removed 'depth' .select_related() argument as per deprecation TL. 2013-06-28 21:48:16 -03:00
select_related_onetoone Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
select_related_regress Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
serializers Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
serializers_regress Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
servers Fixed #20290 -- Allow override_settings to be nested 2013-06-21 16:57:47 +02:00
settings_tests Fixed #19031 -- Added a warning when using override_settings with 'DATABASES' 2013-07-12 07:10:18 -04:00
signals Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
signals_regress Reverted the introduction of shared_models. 2013-06-10 12:34:47 +02: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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
string_lookup Fixed #11442 -- Postgresql backend casts all inet types to text 2013-05-19 13:28:09 +02:00
swappable_models Fixed #20603 -- Made the test suite faster. 2013-06-14 23:16:15 +02:00
syncdb_signals Fixed #20603 -- Made the test suite faster. 2013-06-14 23:16:15 +02:00
syndication Fixed #14656 -- Added Atom1Feed published element 2013-07-19 10:38:34 -04:00
tablespaces Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
template_tests Fixed handling of template loader tests. 2013-07-25 17:19:17 -05: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 #18924 -- Made test.Client.logout send user_logged_out signal. 2013-06-04 12:39:09 -04:00
test_discovery_sample Removed tests for django.utils.unittest vs. unittest. 2013-07-01 21:49:11 +02:00
test_discovery_sample2 Fixed #17365, #17366, #18727 -- Switched to discovery test runner. 2013-05-10 23:08:45 -04:00
test_runner Fixed #20746 -- Removed Python 2.6 specific code/docs 2013-07-14 13:02:55 -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 Removed tests for django.utils.unittest vs. unittest. 2013-07-01 21:49:11 +02:00
test_utils Fixed #18551 -- Enabled skipIfDBFeature/skipUnlessDBFeature to decorate a class 2013-07-19 20:30:14 +02:00
text Fixed #20231 -- Don't use allow_lazy on smart_split 2013-04-10 13:05:29 +02:00
timezones Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
transactions Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
transactions_regress Fixed #20724 -- Test failure on SQLite. 2013-07-09 21:41:30 +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 Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
user_commands Made (make|compile)messages check for availability of gettext commands. 2013-03-10 17:31:11 -03:00
utils_tests Fixed a few more imports of django.utils.unittest. 2013-07-01 22:49:07 +02:00
validation Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
validators Fixed an email validation regression 2013-07-21 21:11:32 +02:00
version Stopped using django.utils.unittest in the test suite. 2013-07-01 14:29:33 +02:00
view_tests Fixed a few more imports of django.utils.unittest. 2013-07-01 22:49:07 +02:00
wsgi Fixed a few more imports of django.utils.unittest. 2013-07-01 22:49:07 +02:00
.coveragerc More import removals 2013-06-29 11:58:36 +02:00
runtests.py Fixed #19941 -- Modified runtests.py to make running the tests easier. 2013-07-24 07:33:03 -04:00
test_sqlite.py
urls.py Renamed some tests and removed references to modeltests/regressiontests. 2013-02-26 14:36:57 +01:00