Commit Graph

1992 Commits

Author SHA1 Message Date
Russell Keith-Magee 5ecb496d6c [1.2.X] Migrated properties doctests. Thanks to George Sakkis for the patch.
Backport of r14165 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12 01:01:49 +00:00
Russell Keith-Magee d83af03c59 [1.2.X] Migrated the mutually_referential doctests. Thanks to George Sakkis for the patch.
Backport of r14164 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12 01:01:25 +00:00
Russell Keith-Magee b12428de91 [1.2.X] Migrated m2o_recursive and m2o_recursive2 tests, merging them into a single package. Thanks to George Sakkis for the patches.
Backport of r14163 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12 01:00:58 +00:00
Jannis Leidel d327611b24 [1.2.X] Fixed #13494 -- Correctly concat an email subject prefix with a translation string. Thanks, hcarvalhoalves and Andi Albrecht.
Backport from trunk (r14157).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11 22:36:17 +00:00
Alex Gaynor 01d1dd6935 [1.2.X] Fixed #14444 -- Convert the pagination doctests to unittests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. Backport of [14152].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11 20:38:29 +00:00
Alex Gaynor efc7524236 [1.2.X] Converted ordering tests from doctests to unittests. We have always been at war with doctests. Backport of [14147].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11 18:18:12 +00:00
Alex Gaynor 6d34d308aa [1.2.X] Converted save_delete_hooks tests from doctests to unittests. We have always been at war with doctests. Backport of [14145].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11 17:41:59 +00:00
Jacob Kaplan-Moss 69d40b4a6f [1.2.X] Fixed #14440 - Converted mail doctests to unittests.
Thanks to Rob Hudson for the patch and also to andialbrecht who filed a
similar patch that I didn't use.

Backport of r14143 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11 15:18:34 +00:00
Alex Gaynor b014c81fa7 [1.2.X] Converted signals tests from doctests to unittests. We have always been at war with doctests. Backport of [14131].
Conflicts:

	tests/modeltests/signals/models.py

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 18:28:53 +00:00
Ramiro Morales 46812b4c2b [1.2.X] Fixed #6073 -- Made compilemessages 18n management command reject PO files with BOM.
Backport of [14125] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 16:45:06 +00:00
Chris Beaven fee4aa31d7 [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].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 10:02:18 +00:00
Carl Meyer 700c5a3dfe [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].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 08:06:39 +00:00
Ramiro Morales 4d70df8b78 [1.2.X] Fixed #12650 -- Don't generate invalid XHTML in the admin, databrowse apps when
the i18n context processor is active. Thanks to Rob Hudson for the report and
fix suggestion.

Backport of [14104] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-10 01:59:17 +00:00
Alex Gaynor 5d9140c137 [1.2.X] Fixed a typo in the comments tests, as well as a dependency on CPython's reference counting semantics. Backport of [14098].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 23:05:09 +00:00
Alex Gaynor ee8fc8d93a [1.2.X] Converted defer_regress tests from doctests to unittests. We have always been at war with doctests. Backport of [14094].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 21:55:33 +00:00
Carl Meyer b6223d3020 [1.2.X] Added sanity-checking of annotation alias names. Backport of [14092] from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 20:10:00 +00:00
Alex Gaynor b3e02d19ec [1.2.X] Fixed #14011 -- Doing a subquery with __in and an EmptyQuerySet no longer raises an Exception. This is actually just a test for this, it was fixed by [14085]. Thanks to skatei for the report and mk for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 16:51:50 +00:00
Alex Gaynor bb66cb8463 [1.2.X] Fixed #14366 -- Model.objects.none().values() now correctly returns a QuerySet with no items, rather than raising an Exception. Thanks to Carl Meyer for the patch. Backport of [14084].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14085 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 16:46:25 +00:00
Alex Gaynor 2e5f0c228f [1.2.X]. Convert m2m_recursive tests to unittests. We have always been at war with doctests. Backport of [14082].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 16:27:19 +00:00
Russell Keith-Magee 935f6873dd [1.2.X] Fixed #14427 -- Added --bisect and --pair flags to runtests.py, making it easier to find pairs of tests that fail when run together.
Backport of r14079 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 14:47:28 +00:00
Russell Keith-Magee 9584b77c35 [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
Backport of r14069 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 08:25:01 +00:00
Russell Keith-Magee a322ba66a1 [1.2.X] Migrated the custom_columns doctests to unit tests. Thanks to Alex Gaynor.
Backport of r13765 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-09 08:23:32 +00:00
Alex Gaynor ae448e4439 [1.2.X] Fixed #13241. order_with_respect_to now works with ForeignKeys who refer to their model lazily (i.e. with a string). Thanks to Gabriel Grant for the patch. This is a backport of [14045].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-08 23:55:38 +00:00
Alex Gaynor 3ab1a0c7d6 [1.2.X] Converted order_with_respect_to to unittests. We have always been at war with doctests. Backport of [14043].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-08 23:48:07 +00:00
Jannis Leidel 9937943f3a [1.2.X] Fixed a few minor backporting oversights that prevented the tests to pass.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-08 17:54:40 +00:00
Jannis Leidel fb3f629457 [1.2.X] Fixed #10970 -- Initialize DateFields with datetime.date objects, not datetime.datetime. Thanks, summerisgone, Cyberj and Ramiro Morales.
Backport from trunk (r14029).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14030 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-08 17:54:11 +00:00
Russell Keith-Magee 0d4d924ca5 [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.
Backport of r14007 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14010 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-08 14:17:13 +00:00
Luke Plant cf1d9f4b2c [1.2.X] Fixed #14430 - Test failure on Windows with get_image_dimensions since [13715]
Thanks to gabrielhurley for report and patch.

Backport of [14001] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-07 23:49:31 +00:00
Luke Plant c7ce5b8929 [1.2.X] Fixed #13092 -- Added support for the "in" operator when dealing with context lists. Thanks to clelland for the patch.
Backport of [13510] from trunk.  Backported in order to support some other
tests which need to be backported.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13986 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-05 20:27:11 +00:00
Russell Keith-Magee 1429a3dbba [1.2.X] Corrected a test failure under MySQL.
Backport of r13976 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-02 13:14:47 +00:00
Jannis Leidel 36ce5d0b3a [1.2.X] Fixed #14363 -- Fixed render method of ManyToManyRawIdWidget to set attrs to an empty dict. Thanks, tyrion and dpn.
Backport from trunk (r13971).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-01 02:40:25 +00:00
Jannis Leidel a0cabd766f [1.2.X] Fixed #13568 -- Fixed the blocktrans tag to not raise a KeyError if the number of variables in the singular and the plural block differ. Thanks, deloide.
Backport from trunk (r13967).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-01 02:39:45 +00:00
Russell Keith-Magee f27d85b8f4 [1.2.X] Modified a fixtures_regress test case to make it more robust to database ordering.
Backport of r13958 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13959 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-29 01:29:10 +00:00
Russell Keith-Magee cd7e271e54 [1.2.X] Migrated fixtures_regress doctests. Thanks to David Brenneman for the patch.
Backport of r13954 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13955 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 14:53:21 +00:00
Russell Keith-Magee 49544ffb36 [1.2.X] Migrated extra_regress doctests. Thanks to Stephan Jaekel.
Backport of r13951 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 13:45:22 +00:00
Russell Keith-Magee 51ded1500f [1.2.X] Migrated expressions_regress doctests. Thanks to Stephan Jaekel.
Backport of r13950 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 13:44:49 +00:00
Russell Keith-Magee aec5f084a3 [1.2.X] Modified the requests unit tests so that they aren't dependent on dictionary ordering.
Backport of r13848 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13949 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 12:10:52 +00:00
Russell Keith-Magee 0f41f91bc2 [1.2.X] Unified the regressiontests/dateformat tests with the regressiontests/utils/dateformat tests.
Backport of r13938 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 08:31:01 +00:00
Russell Keith-Magee a36a8bbb39 [1.2.X] Migrated defaultfilters doctests. Thanks to Stephan Jaekel
Backport of r13937 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 08:30:22 +00:00
Russell Keith-Magee 3b255e33e8 [1.2.X] Migrated regressiontest/datastructures doctest, and moved it into the existing utils datastructures package. Thanks to Stephan Jaekel.
Backport of r13937 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13944 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 08:29:58 +00:00
Russell Keith-Magee efa27fc86c [1.2.X] A few test optimizations; using native unittest where no Django-specific TestCase features are required.
Backport of r13935 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13943 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 08:29:30 +00:00
Russell Keith-Magee 5277425ae4 [1.2.X] Migrated null_fk doctests. Thanks to Stephan Jaekel.
Backport of r13934 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13942 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 08:28:56 +00:00
Russell Keith-Magee ccd6a6783b [1.2.X] Migrated null_fk_ordering doctests. Thanks to Stephan Jaekel.
Backport of r13933 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13941 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 08:28:32 +00:00
Russell Keith-Magee a9e0305f22 [1.2.X] Migrated null_queries doctests. Thanks to Stephan Jaekel.
Backport of r13932 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13940 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 08:28:07 +00:00
Russell Keith-Magee 45859fe9ff [1.2.X] Migrated one_to_one_regress doctests. Thanks to Stephan Jaekel.
Backport of r13931 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 08:27:43 +00:00
Russell Keith-Magee 66cb5d5aae [1.2.X] Migrated requests doctests. Thanks to Stephan Jaekel.
Backport of r13927 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 07:10:05 +00:00
Russell Keith-Magee 7230b609c3 [1.2.X] Migrated reverse_single_related doctests. Thanks to Stephan Jaekel.
Backport of r13926 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 07:09:40 +00:00
Russell Keith-Magee e9f10deec0 [1.2.X] Migrated select_related_regress doctests. Thanks to Stephan Jaekel.
Backport of r13925 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13928 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 07:09:19 +00:00
Russell Keith-Magee cf0e0c47f0 [1.2.X] Removed a test assertion that depended on primary key ordering. The test doesn't validate anything significant, and fails under Postgres. Thanks to Tobias McNulty and the magical Caktus buildbot for pointing out the problem.
Backport of r13923 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13924 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28 04:49:37 +00:00
Jannis Leidel 229c738a03 [1.2.X] Fixed #14053 -- Also localize long integers. Thanks, David Danier.
Backport from trunk (r13920).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-27 16:22:30 +00:00