django/tests/regressiontests
Ramiro Morales 6a369d2ff3 [1.2.X] Fixed errors introduced in r14280 when running Django tests under Python < 2.6.
Backport of [14287] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19 19:42:36 +00:00
..
admin_changelist [1.2.X] Fixed #13599 -- No longer embed hidden `<td>` elements in `ChangeList` that cause improper rendering when `list_editable` is enabled; refactored `admin_changelist` tests. Thanks, skevy for bug report and patch. 2010-09-11 03:04:28 +00:00
admin_inlines [1.2.X] Migrated admin_inlines doctest. Thanks to Sebastian Hillig. 2010-09-27 15:25:57 +00:00
admin_ordering [1.2.X] Migrated admin_ordering doctests. Thanks to Sebastian Hillig. 2010-09-27 15:26:29 +00:00
admin_registration [1.2.X] Migrated admin_registration doctests. Thanks to Sebastian Hillig. 2010-09-27 15:26:57 +00:00
admin_scripts [1.2.X] Fixed #14148 -- Ensure the admin_script tests always use an absolute path; PyPy (and sometimes CPython) return relative paths for __file__. Thanks to Alex Gaynor for the report and patch. 2010-08-21 02:56:05 +00:00
admin_util [1.2.X] Fixed #13963 -- Use the correct verbose name of a reverse relation field in the admin. Thanks, sfllaw and d0ugal. 2010-10-17 15:40:41 +00:00
admin_validation [1.2.X] Migrated admin_validation doctests. Thanks to Sebastian Hillig. 2010-09-27 15:27:25 +00:00
admin_views [1.2.X] Fixed #12650 -- Don't generate invalid XHTML in the admin, databrowse apps when 2010-10-10 01:59:17 +00:00
admin_widgets [1.2.x] Fixed #14454 -- converted admin_widgets tests from doctests to unittests. We have always been at war with doctests. Thanks to prestontimmons for the patch. Backport of [14221]. 2010-10-15 02:41:21 +00:00
aggregation_regress [1.2.X] Refs #11256 -- Extended the annotation field name conflict check to cover m2ms and reverse related descriptors as well. This is needed to actually cover the case raised by #14373. Backport of [14116]. 2010-10-10 08:06:39 +00:00
app_loading Fixed #13389 -- Ensured that the app_loading test clears out the app cache at the end of each test, so that it doesn't interact badly with flush and other introspected database commands. Thanks to Karen for the report, and Ramiro Morales for the debugging hints. 2010-04-21 12:05:15 +00:00
backends [1.2.X] Migrated custom_columns_regress doctests. Thanks to Sebastian Hillig. 2010-09-27 15:32:49 +00:00
bash_completion Refs #11109 -- Touched some whitespace so Trac will display some files correctly. 2009-12-02 00:30:00 +00:00
bug639 Made a set of small test changes to avoid leaving temp files hanging around after running the test suite. First, fixed a couple of places where temp dirs were (or could be) created without later being deleted. Second, added a missing close() before unlink() since Windows raises an error on an attempt to remove an open file. Finally, in the file_uploads tests, avoided opening-by-name temporary files that we already have a descriptor for. Doing additional opens seems to run afoul of the Windows issue with deleting open files, so it generally works better to just seek back to 0 instead of calling open multiple times. 2009-04-05 20:59:20 +00:00
bug8245 Removed an import that is no longer needed after r13033. 2010-04-27 15:11:44 +00:00
builtin_server Fixed #9659: fixed `wsgi.file_wrapper` in the builtin server. Thanks, mitsuhiko. 2009-05-07 15:39:06 +00:00
cache [1.2.X] Add warning when using cache keys that might not work with 2010-09-12 19:07:09 +00:00
comment_tests [1.2.X] Fixed a typo in the comments tests, as well as a dependency on CPython's reference counting semantics. Backport of [14098]. 2010-10-09 23:05:09 +00:00
conditional_processing Fixed #10681 -- Work around (by ignoring) invalid ETag headers. 2009-04-03 06:59:34 +00:00
context_processors Fixed #12066 - Moved auth context processor from core to the auth app. Thanks, Rob Hudson. 2010-02-21 23:40:47 +00:00
csrf_tests [1.2.X] Fixed a test so that it actually tests what it's supposed to test. 2010-09-10 23:58:52 +00:00
custom_columns_regress [1.2.X] Fixed #11509 -- Modified usage of "Web" to match our style guide in various documentation, comments and code. Thanks to timo and Simon Meers for the work on the patch 2010-10-09 08:25:01 +00:00
custom_managers_regress [1.2.X] Migrated the custom_managers_regress doctests. Thanks to Paul McMillan. 2010-09-26 09:56:37 +00:00
datatypes [1.2.X] Fixed #10970 -- Initialize DateFields with datetime.date objects, not datetime.datetime. Thanks, summerisgone, Cyberj and Ramiro Morales. 2010-10-08 17:54:11 +00:00
db_typecasts Refs #2333 - Modified runtests script to use new testing framework. Migrated existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate. 2006-08-27 13:59:47 +00:00
decorators [1.2.X] Fixed #12019 - backwards compatibility issues with cache_page decorator. 2010-09-21 19:33:53 +00:00
defaultfilters [1.2.X] Migrated defaultfilters doctests. Thanks to Stephan Jaekel 2010-09-28 08:30:22 +00:00
defer_regress [1.2.X] Converted defer_regress tests from doctests to unittests. We have always been at war with doctests. Backport of [14094]. 2010-10-09 21:55:33 +00:00
delete_regress Fixed #13309 -- Ensure that delete() deletes everything it should delete(). Thanks to craig.kimerer@gmail.com for the report. 2010-04-09 13:24:13 +00:00
dispatch Fixed #11753 - Q objects with callables no longer explode on Python 2.4. Thanks, Jeremy Dunck. 2009-12-17 22:06:41 +00:00
expressions_regress [1.2.X] Migrated expressions_regress doctests. Thanks to Stephan Jaekel. 2010-09-28 13:44:49 +00:00
extra_regress [1.2.X] Migrated extra_regress doctests. Thanks to Stephan Jaekel. 2010-09-28 13:45:22 +00:00
file_storage [1.2.X] Fixed #11509 -- Modified usage of "Web" to match our style guide in various documentation, comments and code. Thanks to timo and Simon Meers for the work on the patch 2010-10-09 08:25:01 +00:00
file_uploads Fixed #11030: Reverted a change that assumed the file system encoding was utf8, and changed a test to demonstrate how that assumption corrupted uploaded non-ASCII file names on systems that don't use utf8 as their file system encoding (Windows for one, specifically). Thanks for the report to vrehak. 2010-03-02 21:58:49 +00:00
fixtures_regress [1.2.X] Corrected a test failure under MySQL. 2010-10-02 13:14:47 +00:00
forms [1.2.X] Fixed #11907 -- EmailField now runs strip() on its input. This means mistakenly including leading or trailing spaces will not cause a validation error, and clean() will remove those spaces. Thanks, krisneuharth and djansoft. Backport of [13997]. 2010-10-10 10:02:18 +00:00
formwizard Fixed #9473: FormWizard now works with NullBooleanFields. As a bonus, we now have the beginnings of a test suite for FormWizard. Thanks, Keith Bussell. 2009-04-01 14:13:43 +00:00
generic_inline_admin Fixed #12561. InlineAdmin now respects can_delete=False. Thanks, nessita. 2010-02-23 17:14:50 +00:00
generic_relations_regress Fixed #11535: Corrected SQL generated for queries involving generic relations and ORed Q objects. Thanks to brianglass for report, tobias for fix and test, and Alex for review. 2010-02-10 19:21:52 +00:00
get_or_create_regress [1.2.X] Converted get_or_create_regress tests from doctests to unittests. We have always been at war with doctests. Backport of [14177]. 2010-10-12 01:54:48 +00:00
httpwrappers [1.2.X] Improved unicode-type, ASCII-convertible header handling in 2010-09-11 03:25:44 +00:00
humanize Fixed #11783 -- ordinal template tag now catches TypeError. Thanks, realpolitik and punteney 2010-01-10 21:37:20 +00:00
i18n [1.2.X] Fixed #14053 -- Also localize long integers. Thanks, David Danier. 2010-09-27 16:22:30 +00:00
initial_sql_regress [1.2.X] Converted initial_sql_regress tests from doctests (sort of...) to unittests. We have always been at war with doctests. Backport of [14179]. 2010-10-12 01:59:46 +00:00
inline_formsets [1.2.X] Fixed a few other backporting-related bugs introduced in r14213. 2010-10-17 16:09:07 +00:00
introspection Fixed #13396 -- Modified the SQLite introspection code to avoid a problem with unconsumed cursors on PyPy. Thanks to Alex Gaynor for the report and fix. 2010-04-21 23:43:35 +00:00
locale/de/LC_MESSAGES Fixed #11384 - Make sure translations in the project directory really override translations in apps as specified in the docs. 2010-02-16 12:17:17 +00:00
localflavor [1.2.X] Added __init__.py file that was left out of [13505]. 2010-08-06 16:25:19 +00:00
m2m_regress [1.2.X] Fixed a few other backporting-related bugs introduced in r14213. 2010-10-17 16:09:07 +00:00
m2m_through_regress [1.2.X] Fixed #13799, a test failure on Postgres. Thanks, Alex. 2010-09-10 20:59:36 +00:00
mail [1.2.X] Fixed #14301 -- Handle email validation gracefully with email addresses containing non-ASCII characters. Thanks, Andi Albrecht. 2010-10-14 18:38:43 +00:00
makemessages [1.2.X] Removed stray code introduced in r14126 that broke the test suite. 2010-10-17 15:41:00 +00:00
managers_regress [1.2.X] Fixed #14460 -- converted managers_regress tests from doctests to unittests. We have always been at war with doctests. Patch from Gabriel Hurley. Backport of [14207]. 2010-10-14 01:17:32 +00:00
many_to_one_regress [1.2.X] Fixed #14459 -- converted many_to_one_regress tests from doctests to unittests. We have always been at war with doctests. Patch from Gabriel Hurley. Backport of [14210]. 2010-10-14 01:24:55 +00:00
max_lengths Make sure that all uses of max_length in the test suite use values smaller than 255. If we use max_length > 255 the test suite can't be run on MySQL 4. 2009-05-07 18:06:22 +00:00
middleware Added file missing from r12704. 2010-03-07 20:11:00 +00:00
middleware_exceptions Fixed #13090 -- Corrected handling of errors in middleware when DEBUG=False. Thanks to EroSennin for the report, and Ivan Sagalaev for the patch. 2010-03-12 16:45:29 +00:00
model_fields Fixed #12164 -- Removed the Python 2.3 compatibility imports and workarounds. Thanks to timo and claudep for the patch. 2010-05-04 14:00:30 +00:00
model_forms_regress [1.2.X] Fixed #13095 -- `formfield_callback` keyword argument is now more sane and works with widgets defined in `ModelForm.Meta.widgets`. Thanks, hvdklauw for bug report, vung for initial patch, and carljm for review. Backport of r13730 from trunk. 2010-09-10 22:54:52 +00:00
model_formsets_regress [1.2.X] Fixed #13095 -- `formfield_callback` keyword argument is now more sane and works with widgets defined in `ModelForm.Meta.widgets`. Thanks, hvdklauw for bug report, vung for initial patch, and carljm for review. Backport of r13730 from trunk. 2010-09-10 22:54:52 +00:00
model_inheritance_regress Fixed #12164 -- Removed the Python 2.3 compatibility imports and workarounds. Thanks to timo and claudep for the patch. 2010-05-04 14:00:30 +00:00
model_inheritance_select_related [1.2.X] Converted model_inheritance_select_related tests from doctests to unittests. We have always been at war with doctests. Backport of [14181]. 2010-10-12 02:09:35 +00:00
model_regress Fixed #1142 -- Added multiple database support. 2009-12-22 15:18:51 +00:00
modeladmin Fixed #13023 - Removed ambiguity with regard to the max_num option of formsets and as a result of admin inlines. Thanks to Gabriel Hurley for the patch. 2010-03-27 23:03:56 +00:00
multiple_database [1.2.X] Fixed #14068 -- Corrected error handling in loaddata when an allow_syncdb method is defined on the router. Thanks to Xavier Ordoquy for the report. 2010-08-20 14:07:02 +00:00
null_fk [1.2.X] Migrated null_fk doctests. Thanks to Stephan Jaekel. 2010-09-28 08:28:56 +00:00
null_fk_ordering [1.2.X] Migrated null_fk_ordering doctests. Thanks to Stephan Jaekel. 2010-09-28 08:28:32 +00:00
null_queries [1.2.X] Migrated null_queries doctests. Thanks to Stephan Jaekel. 2010-09-28 08:28:07 +00:00
one_to_one_regress [1.2.X] Migrated one_to_one_regress doctests. Thanks to Stephan Jaekel. 2010-09-28 08:27:43 +00:00
pagination_regress A few corrections to my docstrings in [8129]. 2008-07-28 20:35:39 +00:00
queries [1.2.X] Fixed errors introduced in r14280 when running Django tests under Python < 2.6. 2010-10-19 19:42:36 +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 [1.2.X] Modified the requests unit tests so that they aren't dependent on dictionary ordering. 2010-09-28 12:10:52 +00:00
reverse_single_related [1.2.X] Migrated reverse_single_related doctests. Thanks to Stephan Jaekel. 2010-09-28 07:09:40 +00:00
select_related_onetoone Fixed #12937 -- Corrected the operation of select_related() when following an reverse relation on an inherited model. Thanks to subsume for the report. 2010-03-20 15:02:59 +00:00
select_related_regress [1.2.X] Migrated select_related_regress doctests. Thanks to Stephan Jaekel. 2010-09-28 07:09:19 +00:00
serializers_regress Fixed #13638 -- Refactored the serializers_regress tests to avoid the use of flush, and make better use of the transactional capabilities of django.test.TestCase. Thanks to Alex Gaynor for the patch. 2010-05-28 09:52:24 +00:00
servers [1.2.X] Fixed #14271 -- Use absolute path for admin media tests. Thanks, Alex Gaynor. 2010-09-26 20:57:00 +00:00
settings_tests Fixed the tests I broke with [11824]. 2009-12-12 18:45:43 +00:00
signals_regress [1.2.X] Migrated signals_regress doctests. Thanks to Stephan Jaekel. 2010-09-27 15:37:45 +00:00
sites_framework [1.2.X] Fixed #13790 -- auto detection of m2m fields to Site. Thanks, gabrielhurley! 2010-10-18 05:02:28 +00:00
special_headers Added some missing __init__.py files to two tests 2010-01-10 17:49:41 +00:00
string_lookup [1.2.X] Migrated string_lookup doctests. Thanks to Stephan Jaekel. 2010-09-27 15:37:19 +00:00
syndication [1.2.X] Fixed #13218 -- Ensure that syndicated content served over HTTPS uses https:// links by default. Thanks to schaefer for the report, and Ben Firshman for the patch. 2010-10-08 14:17:13 +00:00
templates [1.2.X] Fixed #14126 -- Fixed an issue with changes to the blocktrans tag introduced in r13973 related to multiple plural forms. Thanks, mark0978, svetlyak40wt and Ramiro. 2010-10-16 20:51:06 +00:00
test_client_regress [1.2.X] Fixed #13092 -- Added support for the "in" operator when dealing with context lists. Thanks to clelland for the patch. 2010-10-05 20:27:11 +00:00
test_runner Corrected the tests for DjangoTestRunner so they pass under Postgres. 2009-12-22 06:00:57 +00:00
test_utils Made the test case for doctest comparison of XML fragments a little more rigorous. Refs #7441. 2008-07-20 08:47:10 +00:00
text [1.2.X] Migrated text doctests. Thanks to Stephan Jaekel. 2010-09-27 15:36:54 +00:00
urlpatterns_reverse [1.2.X] Fixed a few minor backporting oversights that prevented the tests to pass. 2010-10-08 17:54:40 +00:00
utils [1.2.X] Unified the regressiontests/dateformat tests with the regressiontests/utils/dateformat tests. 2010-09-28 08:31:01 +00:00
views Fixed #12544 and #13600 -- Fixed static files serving view to catch invalid date from If-Modified-Since header. Thanks akaihola and SmileyChris for patches. 2010-09-26 20:46:37 +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