summaryrefslogtreecommitdiff
path: root/tests/modeltests
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-26Removed __init__.py files.Florian Apolloner
2013-02-25Use built-in fixture support rather than calling loaddata in setUp().Carl Meyer
2013-02-25Changed testing strategy used in 6b03179e.Aymeric Augustin
Avoid polluting the app cache as it causes unrelated test failures. Refs #19688.
2013-02-24Fixed #19688 -- Allow model subclassing with a custom metaclass using ↵Simon Charette
six.with_metaclass
2013-02-24Merge pull request #717 from slurms/ticket_19746Florian Apolloner
Fixed #19746 -- Allow deserialization of pk-less data
2013-02-24Fixed a few ResourceWarnings.Florian Apolloner
2013-02-24Removing unneeded tearDown code.Honza Kral
2013-02-23Fixed #18491 -- deleting a proxy doesn't show warning about cascade deletesHonza Kral
2013-02-23Fixed #18829 -- Fixed ModelChoiceIterator lengthKlaas van Schelven
Thanks facundo.olano at gmail.com for the report and thikonom for the initial patch.
2013-02-23Fixed 19895 -- Made second iteration over invalid queryset raise an ↵Grzegorz Nosek
exception too When iteration over a queryset raised an exception, the result cache remained initialized with an empty list, so subsequent iterations returned an empty list instead of raising an exception
2013-02-23Fixed errors introduced in 664855b74e1f417384dc7aef35a3df5f86db52d6Florian Apolloner
2013-02-23Fixed errors introduced in 21f333bcefccc151d6439246f8203d609ab6ca79. Refs #17751Florian Apolloner
2013-02-23Fixed #15877 -- Improved exception when ModelForm has no model classClaude Paroz
Thanks theaspect at gmail.com for the report and volrath for the patch.
2013-02-23Merge pull request #775 from HiddenData/ticket-18899Honza Král
Fixed #18899 -- FileSystemStorage.save should support any file-like objects
2013-02-23#18899 FileSystemStorage.save should support any file-like objectsMarcin Biernat
2013-02-23Fix #17751: Added stripping of whitespace for ↵Erik Romijn
IPAddressField/GenericIPAddressField
2013-02-23Fixed #19686 -- Added HTML5 number input typeClaude Paroz
Thanks Simon Charette for his help on the patch. Refs #16630.
2013-02-16Fixed #17260 -- Added time zone aware aggregation and lookups.Aymeric Augustin
Thanks Carl Meyer for the review. Squashed commit of the following: commit 4f290bdb60b7d8534abf4ca901bd0844612dcbda Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 21:21:30 2013 +0100 Used '0:00' instead of 'UTC' which doesn't always exist in Oracle. Thanks Ian Kelly for the suggestion. commit 01b6366f3ce67d57a58ca8f25e5be77911748638 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 13:38:43 2013 +0100 Made tzname a parameter of datetime_extract/trunc_sql. This is required to work around a bug in Oracle. commit 924a144ef8a80ba4daeeafbe9efaa826566e9d02 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Wed Feb 13 14:47:44 2013 +0100 Added support for parameters in SELECT clauses. commit b4351d2890cd1090d3ff2d203fe148937324c935 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 22:30:22 2013 +0100 Documented backwards incompatibilities in the two previous commits. commit 91ef84713c81bd455f559dacf790e586d08cacb9 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 09:42:31 2013 +0100 Used QuerySet.datetimes for the admin's date_hierarchy. commit 0d0de288a5210fa106cd4350961eb2006535cc5c Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 09:29:38 2013 +0100 Used QuerySet.datetimes in date-based generic views. commit 9c0859ff7c0b00734afe7fc15609d43d83215072 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:25 2013 +0100 Implemented QuerySet.datetimes on Oracle. commit 68ab511a4ffbd2b811bf5da174d47e4dd90f28fc Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:14 2013 +0100 Implemented QuerySet.datetimes on MySQL. commit 22d52681d347a8cdf568dc31ed032cbc61d049ef Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:42:29 2013 +0100 Implemented QuerySet.datetimes on SQLite. commit f6800fd04c93722b45f9236976389e0b2fe436f5 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:43:03 2013 +0100 Implemented QuerySet.datetimes on PostgreSQL. commit 0c829c23f4cf4d6804cadcc93032dd4c26b8c65e Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:41:08 2013 +0100 Added datetime-handling infrastructure in the ORM layers. commit 104d82a7778cf3f0f5d03dfa53709c26df45daad Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Mon Feb 11 10:05:55 2013 +0100 Updated null_queries tests to avoid clashing with the __second lookup. commit c01bbb32358201b3ac8cb4291ef87b7612a2b8e6 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 23:07:41 2013 +0100 Updated tests of .dates(). Replaced .dates() by .datetimes() for DateTimeFields. Replaced dates with datetimes in the expected output for DateFields. commit 50fb7a52462fecf0127b38e7f3df322aeb287c43 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 21:40:09 2013 +0100 Updated and added tests for QuerySet.datetimes. commit a8451a5004c437190e264667b1e6fb8acc3c1eeb Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 22:34:46 2013 +0100 Documented the new time lookups and updated the date lookups. commit 29413eab2bd1d5e004598900c0dadc0521bbf4d3 Author: Aymeric Augustin <aymeric.augustin@m4x.org> Date: Sun Feb 10 16:15:49 2013 +0100 Documented QuerySet.datetimes and updated QuerySet.dates.
2013-02-12Fixed #19746 -- Allow deserialization of pk-less dataNick Sandford
2013-02-08Fixed #18906 -- Ignored to-be-deleted forms in formset validate_uniqueClaude Paroz
Thanks c.pollock at bangor.ac.uk for the report.
2013-02-08Cleaned up some lingering signals in the test suite that were causing ↵Julien Phalip
spurious failures with Pypy and Postgres.
2013-02-06Fixed a typo in the test suite that was causing some spurious failures with ↵Julien Phalip
pypy.
2013-02-03Fixed #19730 -- Don't validate importability of settings by using i18n in ↵Ramiro Morales
management commands. They are handled independently now and the latter can be influenced by the new BaseCommand.leave_locale_alone internal option. Thanks chrischambers for the report, Claude, lpiatek, neaf and gabooo for their work on a patch, originally on refs. #17379.
2013-02-01Added test to demonstrate issue 11263 isn't there anymore.Ramiro Morales
Thanks veena for the report and jaklaassen for the patch. Fixes #11263.
2013-01-26Fixed #19589 -- assertRegexpMatches is deprecated in Python 3.3.Aymeric Augustin
2013-01-26Fixed validation of email addresses when the local part contains an @.Aymeric Augustin
See also BaseUserManager.normalize_email -- it uses rsplit. Refs #4833.
2013-01-24Fixed #17416 -- Added widgets argument to inlineformset_factory and ↵Nick Sandford
modelformset_factory
2013-01-20Cleaned up testing models.py added for earliest()Anssi Kääriäinen
The main cleanup was removal of non-necessary __unicode__ method. The tests didn't break on py3 as the string representation was never used in the tests. Refs #17813. Thanks to Simon Charette for spotting this issue.
2013-01-20Fixed #17813 -- Added a .earliest() method to QuerySetNick Sandford
Thanks a lot to everybody participating in developing this feature. The patch was developed by multiple people, at least Trac aliases tonnzor, jimmysong, Fandekasp and slurms. Stylistic changes added by committer.
2013-01-15Removed some uses of the deprecated assertEqualsAlex Gaynor
2013-01-14Improve test to ensure that post_delete was actually calledDavid Cramer
2013-01-14Move signal disconnect into finally blockDavid Cramer
2013-01-14Send post_delete signals immediatelyDavid Cramer
In a normal relational construct, if you're listening for an event that signals a child was deleted, you dont expect that the parent was deleted already. This change ensures that post_delete signals are fired immediately after objects are deleted in the graph.
2013-01-11Fixed #4833 -- Validate email addresses with localhost as domainClaude Paroz
2013-01-11Adapted test assertion against yaml dumpClaude Paroz
Fixes #12914 (again).
2013-01-08Updated deprecated test assertionsClaude Paroz
2013-01-06Tests for various emptyqs ticketsAnssi Kääriäinen
The tickets are either about different signature between qs.none() and qs or problems with subclass types (either EmptyQS overrided the custom qs class, or EmptyQS was overridden by another class - values() did this). Fixed #15959, fixed #17271, fixed #17712, fixed #19426
2013-01-06Fixed #19173 -- Made EmptyQuerySet a marker class onlyAnssi Kääriäinen
The guarantee that no queries will be made when accessing results is done by new EmptyWhere class which is used for query.where and having. Thanks to Simon Charette for reviewing and valuable suggestions.
2013-01-02Minor fixes in the known_related_objects tests.Aymeric Augustin
* Fixed JSON indentation. * Avoided relying on implicit ordering.
2013-01-02Fixed #19547 -- Caching of related instances.Aymeric Augustin
When &'ing or |'ing querysets, wrong values could be cached, and crashes could happen. Thanks Marc Tamlyn for figuring out the problem and writing the patch.
2012-12-29Silenced warnings in the tests of deprecated features.Aymeric Augustin
2012-12-29Fixed autopk issue in testsAnssi Kääriäinen
2012-12-27Fixed #19525 -- Reverted dcd4383107 and 05d333ba3b.Aymeric Augustin
Refs #9893, #18515. Thanks Russell for the report.
2012-12-24Use new TestCase methods for equality comparisonsIan Clelland
2012-12-19Fixed #18172 -- Made models with __iter__ usable in ModelMultipleChoiceFieldPatryk Zawadzki
Thanks to Patryk Zawadzki for the patch.
2012-12-13Fixed #19462 -- Made assertQuerysetEqual detect undefined orderingAnssi Kääriäinen
If there are more than one values to compare against and the qs isn't ordered then assertQuerysetEqual will raise a ValueError.
2012-12-12Fixed #19432 -- Provided better error message for get_object_or_404Claude Paroz
Thanks Kit Sunde for the report and Brian Holdefehr for the initial patch.
2012-12-08Removed US localflavor-specific tests from coreClaude Paroz
Also fixes #9045.
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.