django/tests/regressiontests
Ramiro Morales 326949e444 Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite.
Replaced them with a new assertRaisesMessage method of a new SimpleTestCase, a lightweight subclass of unittest.TestCase. Both are also available for usage in user tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-13 00:42:08 +00:00
..
admin_changelist Fixed an unnecessary use of TransactionTestCase 2011-06-08 23:09:32 +00:00
admin_filters Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
admin_inlines Fixed #15424 -- Corrected lookup of callables listed in admin inlines' `readonly_fields` by passing the right ModelAdmin (sub)class instance when instantiating inline forms admin wrappers. Also, added early validation of its elements. Thanks kmike for the report and Karen for the patch fixing the issue. 2011-02-26 01:44:41 +00:00
admin_ordering Fixed #12875 -- Added get_ordering to ModelAdmin. Many thanks to Manuel Saelices. 2011-06-12 13:04:53 +00:00
admin_registration Fixed #12004 -- Improved error reporting when an abstract class is registered with the admin. Thanks to Matt Smalley for the report, and to mk and Julien Phalip for the patch. 2011-02-23 13:43:21 +00:00
admin_scripts Fixed #16155 -- Removed Python 2.4 compatibility constructs from code and mentions from docs. Thanks Aymeric Augustin for the report and patch. 2011-06-09 20:01:28 +00:00
admin_util Fixed #16050 -- BACKWARDS-INCOMPATIBLE CHANGE: Moved static files of the admin to conventional file system location. 2011-06-30 09:06:19 +00:00
admin_validation Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
admin_views Fixed #16604 -- Use new save_related hook when saving objects on the changelist, too. Thanks, pdeglopper. 2011-08-12 14:14:24 +00:00
admin_widgets Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl. 2011-08-12 14:14:15 +00:00
aggregation_regress Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl. 2011-08-12 14:14:15 +00:00
app_loading Refs #15093 -- Fixed another get_models call missed in r16053. Thanks Luke for catching it. 2011-04-27 17:51:43 +00:00
backends Fixed #3615: Added support for loading fixtures with forward references on database backends (such as MySQL/InnoDB) that do not support deferred constraint checking. Many thanks to jsdalton for coming up with a clever solution to this long-standing issue, and to jacob, ramiro, graham_king, and russellm for review/testing. (Apologies if I missed anyone else who helped here.) 2011-08-07 00:43:26 +00:00
bash_completion Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
bug639 Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. 2010-10-11 12:55:17 +00:00
bug8245 Removed all usages of deprecated TestCase methods (self.fail*). This removed most of the Warnings emitted (with -Wall) during the test suite. 2010-12-04 07:28:12 +00:00
builtin_server Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
cache Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl. 2011-08-12 14:14:15 +00:00
comment_tests Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
conditional_processing Modified some regression tests to make them independent of the default root urlconf. 2011-04-02 13:27:17 +00:00
context_processors Fixed auth context processor tests, which were not running at all previously. 2011-05-31 15:19:19 +00:00
csrf_tests Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
custom_columns_regress Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
custom_managers_regress Migrated the custom_managers_regress doctests. Thanks to Paul McMillan. 2010-09-26 09:55:41 +00:00
datatypes Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
dates Fixed #13935, added support for using QuerySet.dates across related fields. Thanks to valyagolev for his work on the patch. 2010-11-04 16:03:05 +00:00
db_typecasts Fixed #14453 -- Changed handling of microseconds part in typecast_timestamp() DB backend helper function to be more correct. Thanks philipn for the report and fix. 2010-11-21 15:08:53 +00:00
decorators Deprecated legacy ways of calling cache_page 2011-06-08 11:12:01 +00:00
defaultfilters Fixed #14288 -- Fixed linebreaksbr template filter to normalize newlines first. Thanks, Julien Phalip. 2011-07-29 10:22:25 +00:00
defer_regress Fixed #16480 -- Modified test added in r16522 so it doesn't use a query not supported under Oracle (`GROUP BY` a NCLOB field). Thanks Aymeric for the report. Refs #4186 2011-07-17 22:22:39 +00:00
delete_regress Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
dispatch Removed a bunch more Python 2.4 workarounds now that we don't support that version. Refs #15702 -- thanks to jonash for the patch. 2011-03-28 02:11:19 +00:00
expressions_regress Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
extra_regress Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
file_storage Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
file_uploads Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
fixtures_regress Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
forms Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
generic_inline_admin Fixed #15907 -- Fixed another conflict between the ModelForm exclude and the GenericInline. Thanks, leonelfreire and prestontimmons. 2011-08-12 14:14:58 +00:00
generic_relations_regress Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
generic_views Fixed #15907 -- Fixed another conflict between the ModelForm exclude and the GenericInline. Thanks, leonelfreire and prestontimmons. 2011-08-12 14:14:58 +00:00
get_or_create_regress Fix wrong attribute name in [15156]. Thanks to Alex Gaynor for spotting this. 2011-01-10 13:44:35 +00:00
handlers Fixed #15672 -- Refined changes made in r15918. Thanks, vung. 2011-04-22 12:15:52 +00:00
httpwrappers Fixed bug with our SimpleCookie regarding load/custom Morsel, and simplified implementation 2011-07-08 12:07:54 +00:00
humanize Fixed #15921 -- Refined naturaltime filter added in r16071 to use timesince and timeuntil filters as fallbacks instead of date filter. 2011-05-17 10:16:12 +00:00
i18n Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
initial_sql_regress Refs #14661 -- Clarified the handling of initial data injected via custom SQL. 2011-01-18 16:43:01 +00:00
inline_formsets Fixed a number of tests that were failing in Oracle due to false assumptions about the primary keys of objects. 2011-03-09 00:39:35 +00:00
inspectdb Fixed #15170 -- Skip the inspectdb test under MySQL/MyISAM, because it can't differentiate a foreign key from an integer. 2011-02-01 14:42:52 +00:00
introspection Fixed #3615: Added support for loading fixtures with forward references on database backends (such as MySQL/InnoDB) that do not support deferred constraint checking. Many thanks to jsdalton for coming up with a clever solution to this long-standing issue, and to jacob, ramiro, graham_king, and russellm for review/testing. (Apologies if I missed anyone else who helped here.) 2011-08-07 00:43:26 +00:00
locale/de/LC_MESSAGES Fixed #5494, #10765, #14924 -- Modified the order in which translations are read when composing the final translation to offer at runtime. 2011-02-07 18:48:40 +00:00
localflavor Fixed #16497 -- Added new form and model fields to the Mexican local flavor. Many thanks to Andrés Torres Marroquín and Gerardo Orozco. 2011-07-29 10:20:16 +00:00
logging_tests Fixed #16288 -- Enabled django.request exception logger regardless of DEBUG setting. 2011-06-22 06:01:44 +00:00
m2m_regress Fixed #14458 -- converted m2m_regress tests from doctests to unittests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. 2010-10-14 01:10:57 +00:00
m2m_through_regress Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
mail Fixed #15750 -- Handle empty mail server credentials gracefully. Thanks, LeandroSouza and bedmondmark. 2011-07-03 17:56:05 +00:00
managers_regress Fixed #14460 -- converted managers_regress tests from doctests to unittests. We have always been at war with doctests. Patch from Gabriel Hurley. 2010-10-14 01:17:14 +00:00
many_to_one_regress Fixed #14459 -- converted many_to_one_regress tests from doctests to unittests. We have always been at war with doctests. Patch from Gabriel Hurley. 2010-10-14 01:24:34 +00:00
max_lengths Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
middleware Fixed #14261 - Added clickjacking protection (X-Frame-Options header) 2011-05-30 22:27:47 +00:00
middleware_exceptions Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
model_fields Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
model_forms_regress Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
model_formsets_regress Fixed #15549 -- Removed dependency on specific primary keys. Thanks to bberes for the report. 2011-03-04 00:23:00 +00:00
model_inheritance_regress Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
model_inheritance_select_related Converted model_inheritance_select_related tests from doctests to unittests. We have always been at war with doctests. 2010-10-12 02:09:13 +00:00
model_permalink Fixed #15604 -- Changed django.db.models.permalink to use wraps() so that it doesn't eat the docstring. Thanks for the report, sfllaw. Also added tests. 2011-03-14 05:22:39 +00:00
model_regress Fixed #16196 - Redundant or incorrect code in tests 2011-06-10 10:18:06 +00:00
modeladmin Fixed #14496 -- Fixed conflict between ModelForm exclude and ModelAdmin readonly values. Thanks, Julien Phalip. 2011-08-12 14:14:49 +00:00
multiple_database Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl. 2011-08-12 14:14:15 +00:00
null_fk Fixed #15823 - incorrect join condition when combining Q objects 2011-05-05 20:26:26 +00:00
null_fk_ordering Migrated null_fk_ordering doctests. Thanks to Stephan Jaekel. 2010-09-28 08:17:12 +00:00
null_queries Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
one_to_one_regress Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
pagination_regress Fixed #13689 -- Convert the per_page value to an integer upon initialization of the Paginator class to prevent unpleasant TypeErrors. Thanks, rbanffy, Eric Florenzano and Claude Paroz. 2011-04-22 12:03:03 +00:00
queries Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
queryset_pickle Tweak the last two tests from r13013 to test what they are intended to test instead of repeating 3rd to last test. 2010-04-21 18:07:23 +00:00
requests Fixed #15785 -- Stopped HttpRequest.read() from reading beyond the end of a wsgi.input stream and removed some redundant code in the multipartparser. Thanks, tomchristie, grahamd and isagalaev. 2011-06-28 10:17:56 +00:00
reverse_single_related Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
select_related_onetoone Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
select_related_regress Fixed a bunch more tests that were failing in Oracle due to false assumptions about the primary keys of objects. 2011-03-09 23:46:28 +00:00
serializers_regress Fixed #3615: Added support for loading fixtures with forward references on database backends (such as MySQL/InnoDB) that do not support deferred constraint checking. Many thanks to jsdalton for coming up with a clever solution to this long-standing issue, and to jacob, ramiro, graham_king, and russellm for review/testing. (Apologies if I missed anyone else who helped here.) 2011-08-07 00:43:26 +00:00
servers Fixed #16050 -- BACKWARDS-INCOMPATIBLE CHANGE: Moved static files of the admin to conventional file system location. 2011-06-30 09:06:19 +00:00
settings_tests Made override_settings also work with TransactionTestCase when acting as a class decorator. 2011-08-10 22:26:34 +00:00
signals_regress Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
signed_cookies_tests Fixed #12417 -- Added signing functionality, including signing cookies. Many thanks to Simon, Stephan, Paul and everyone else involved. 2011-05-21 14:41:14 +00:00
signing Backed out [16356] due to later rejection of #16182. 2011-06-17 09:47:08 +00:00
sites_framework Fixed #13790 -- auto detection of m2m fields to Site. Thanks, gabrielhurley! 2010-10-18 04:56:27 +00:00
special_headers Fixed a failing test in special_headers, and performed a bit of cleanup. 2011-04-26 16:56:17 +00:00
staticfiles_tests Fixed #15252 -- Added static template tag and CachedStaticFilesStorage to staticfiles contrib app. 2011-08-11 14:07:39 +00:00
string_lookup Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
syndication Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for the work on the patch and Alex for reviewing. 2011-07-13 09:35:51 +00:00
templates Fixed #5831 -- Made sure the ForNode reports the correct source of an exception happening in one of the loops. Thanks, Charmless and vladmos. 2011-08-12 14:15:17 +00:00
test_client_regress Fixed #15785 -- Stopped HttpRequest.read() from reading beyond the end of a wsgi.input stream and removed some redundant code in the multipartparser. Thanks, tomchristie, grahamd and isagalaev. 2011-06-28 10:17:56 +00:00
test_runner Fixed #12658 -- Fixed test discovery so ImportErrors aren't ignored when both `tests` and `models` are packages. Thanks schinckel for the report and boxm for a patch for the issue. 2011-06-12 12:34:10 +00:00
test_utils Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
text Added missing future imports missed in r16167. 2011-05-06 19:49:06 +00:00
transactions_regress Updated test assertions that have been deprecated by the move to unittest2. In summary, this means: 2011-03-03 15:04:39 +00:00
urlpatterns_reverse Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
utils Fixed #14503 -- Unified multiple implementations of test cases assert* methods that verify a given exception is raised by a callable throughout the Django test suite. 2011-08-13 00:42:08 +00:00
views Fixed #9847 -- Added 403 response handler. Many thanks to kgrandis, adamnelson, vkryachko, fvox13 and Chris Beaven. 2011-08-12 14:15:31 +00:00
__init__.py Added regressions tests to ensure that one-to-one and many-to-many fields 2006-06-20 05:29:19 +00:00