summaryrefslogtreecommitdiff
path: root/tests/modeltests
AgeCommit message (Collapse)Author
2010-12-18[1.2.X] Fixed #14919 - test isolation issue with ↵Luke Plant
model_inheritance.ModelInheritanceTests.test_multiple_table and views.DefaultsTests.test_csrf_token_in_404 test_csrf_token_in_404 was assuming DEBUG = False, and test_multiple_table was leaving DEBUG = True. Both issues have been fixed. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14930 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04[1.2.X] Fixed a broken test introduced in [14786].Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-04[1.2.X] Removed all usages of deprecated TestCase methods (self.fail*). ↵Alex Gaynor
This removed most of the Warnings emitted (with -Wall) during the test suite. Backport of [14803]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-03[1.2.X] Fixed #14700 -- ensure that a raw query is only executed once per ↵Alex Gaynor
iteration. Backport of [14785]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-12-01[1.2.X] Fixed result ordering assumptions in the select_related tests.Ian Kelly
Backport of r14762 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17[1.2.X] Migrated model_formsets doctests. Thanks to Gregor Müllegger for ↵Russell Keith-Magee
the patch. Backport of r14590 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-14[1.2.X] Fixed #3055 -- Validate that models target of a GenericRelation have ↵Ramiro Morales
a GenericForeignKey field. Thanks jason for diagnosing the problem and Marcos Moyano for the patch. Backport of [14563] from trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12[1.2.X]Converted m2m_signals from doctests to unittests. Thanks to Gregor ↵Alex Gaynor
Müllegger for the patch. We have always been at war with doctests. Backport of [14548]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11[1.2.X] Removed the executable bit from a test file, it wasn't. Thanks to ↵Alex Gaynor
Florian for the report. Backport of [14530]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Fixed #10728 -- corrected subclassing of Fields who use the ↵Alex Gaynor
SubfieldBase metaclass. Thanks to G2P and George Sakkis for their work on the patch. Backport of [14443]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Fixed a few more cases of the tests not properly restoring sys.path ↵Alex Gaynor
(follow up on [14430]). Backport of [14431]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Migrated lookup doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee
Backport of r14423 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Migrated basic doctests. Thanks to Preston Timmons for the patch.Russell Keith-Magee
Backport of r14421 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14422 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-02[1.2.X] Migrated m2m_through doctests. Thanks to the anonymous contributor.Russell Keith-Magee
Backport of r14419 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-25[1.2.X] Converted model_inheritance doctests to unittests. We have always ↵Alex Gaynor
been at war with doctests. Backport of [14348]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21[1.2.X] Fixed #14513 -- check fields with underscores for validity when ↵Chris Beaven
ordering. Bonus points to Klaas van Schelven. Backport from trunk (r14315) git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19[1.2.X] Migrated many-to-many doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee
Backport of r14285 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-19[1.2.X] Migrated many-to-one doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee
Backport of r14281 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-17Corrected a suite of test failures when running under postgres. Backport of ↵Alex Gaynor
[14241]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-16[1.2.X] Converted or_lookups tests from doctests to unittests. We have ↵Alex Gaynor
always been at war with doctests. Thanks to Paul Tax for the patch. Backport of [14236]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-15[1.2.X] Fixed #14473 -- converted the model_package tests from doctests to ↵Alex Gaynor
unitests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. Backport of [14227]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-15[1.2.X] Fixed #14472 -- converted generic_relations tests from doctests to ↵Alex Gaynor
unitests. We have always been at war with doctests. Thanks to Gabriel Hurley for the patch. Backport of [14225]. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-13[1.2.X] Changed unique validation in model formsets to ignore None values, ↵Honza Král
not just omit them. Thanks claudep! Backport of r14193 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Modified the test_client tests to use the non-deprecated mail API.Russell Keith-Magee
Backport of r14187 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Tweak to many_to_one_null doctest to avoid primary key assumptions ↵Russell Keith-Magee
(causing breakage on PostgreSQL). Backport of r14168 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Migrated one_to_one doctests. Thanks to George Sakkis for the patch. ↵Russell Keith-Magee
(We have always been at war with doctests) Backport of r14167 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Migrated many_to_one_null doctests. Thanks to George Sakkis for the ↵Russell Keith-Magee
patch. Backport of r14166 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14172 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-12[1.2.X] Migrated properties doctests. Thanks to George Sakkis for the patch.Russell Keith-Magee
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[1.2.X] Migrated the mutually_referential doctests. Thanks to George Sakkis ↵Russell Keith-Magee
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[1.2.X] Migrated m2o_recursive and m2o_recursive2 tests, merging them into a ↵Russell Keith-Magee
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-11[1.2.X] Fixed #14444 -- Convert the pagination doctests to unittests. We ↵Alex Gaynor
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[1.2.X] Converted ordering tests from doctests to unittests. We have always ↵Alex Gaynor
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[1.2.X] Converted save_delete_hooks tests from doctests to unittests. We ↵Alex Gaynor
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-10[1.2.X] Converted signals tests from doctests to unittests. We have always ↵Alex Gaynor
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-09[1.2.X]. Convert m2m_recursive tests to unittests. We have always been at ↵Alex Gaynor
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[1.2.X] Fixed #11509 -- Modified usage of "Web" to match our style guide in ↵Russell Keith-Magee
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[1.2.X] Migrated the custom_columns doctests to unit tests. Thanks to Alex ↵Russell Keith-Magee
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-08[1.2.X] Fixed #13241. order_with_respect_to now works with ForeignKeys who ↵Alex Gaynor
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[1.2.X] Converted order_with_respect_to to unittests. We have always been ↵Alex Gaynor
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[1.2.X] Fixed a few minor backporting oversights that prevented the tests to ↵Jannis Leidel
pass. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14031 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-19[1.2.X] Fixed #11486 -- Corrected the XML serializer to allow for the ↵Russell Keith-Magee
serialization of objects with a null PK value. Also includes migration of doctests to unittests (we have always been at war with doctests). Thanks to zdmytriv for the report, and Niall Kelly for the patch. Backport of r13862 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated proxy_models doctests. Thanks to Eric Florenzano.Russell Keith-Magee
Backport of r13831 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated reserved_names doctests. Thanks to Eric Florenzano.Russell Keith-Magee
Backport of r13830 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13839 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated reverse_lookup doctests. Thanks to Eric FlorenzanoRussell Keith-Magee
Backport of r13829 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13838 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated select_related doctests. Thanks to Eric Florenzano.Russell Keith-Magee
Backport of r13828 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13837 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated str doctests. Thanks to Eric Florenzano.Russell Keith-Magee
Backport of r13827 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated transactions doctests. Thanks to Eric Florenzano.Russell Keith-Magee
Backport of r13826 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated unmanaged_models doctests. Thanks to Eric Florenzano.Russell Keith-Magee
Backport of r13825 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated the update doctests. Thanks to Eric Florenzano.Russell Keith-Magee
Backport of r13824 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13[1.2.X] Migrated user_commands doctests. Thanks to Eric Florenzano.Russell Keith-Magee
Backport of r13823 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13832 bcc190cf-cafb-0310-a4f2-bffc1f526a37