summaryrefslogtreecommitdiff
path: root/tests/modeltests/fixtures/tests.py
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2012-12-24Use new TestCase methods for equality comparisonsIan Clelland
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-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
2012-08-08[py3] Used compatible imports of StringIO.Aymeric Augustin
2012-06-07Added more precise assertions on two fixture tests.Claude Paroz
2012-06-07Fixed #10200 -- Raised CommandError when errors happen in loaddata.Claude Paroz
2012-05-27Fixed #18387 -- Do not call sys.exit during call_command.Claude Paroz
Moved sys.exit(1) so as failing management commands reach it only when running from command line.
2012-05-26Fixed #5423 -- Made dumpdata output one row at a time.Claude Paroz
This should prevent storing all rows in memory when big sets of data are dumped. See ticket for heroic contributors.
2011-11-27Changed the fixtures used to test the 'initial_data' feature so they don't ↵Aymeric Augustin
contain datetimes. Refs #17275. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-11-18Added support for time zones. Thanks Luke Plant for the review. Fixed #2626.Aymeric Augustin
For more information on this project, see this thread: http://groups.google.com/group/django-developers/browse_thread/thread/cf0423bbb85b1bbf git-svn-id: http://code.djangoproject.com/svn/django/trunk@17106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-17Tweaked test added in r16873 so it also works with Oracle.Ramiro Morales
* Changed invalid fixture from trying to insert a NULL value in a null=False CharField to try with a DateTimeField instead because our Oracle backend allows NULLs for CharFields than can be blank and that insert wouldn't generate an error. * cx_Oracle raises a `DatabaseError: Could not load fixtures.Article(pk=1): ORA-01407: cannot update ("USER_DEFAULT"."FIXTURES_ARTICLE"."PUB_DATE") to NULL'` instead of an IntegrityError like the rest of the DB-API drivers we support, changed the error message we test for to start simply with 'Error' to catch both messages. We might want to consider converting DatabaseError to IntegrityError in the backend when the error code is ORA-1407. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-16Fixed a test that relied on the database to reject invalid data; MySQL ↵Aymeric Augustin
doesn't. Refs #17055. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16996 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert all modeltests to use absolute imports, rather than relative ones.Alex Gaynor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-22Fixed #16026 -- loaddata now identifies which object triggered an error.Paul McMillan
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16873 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-07-13Fixed #16225 -- Removed unused imports. Many thanks to Aymeric Augustin for ↵Jannis Leidel
the work on the patch and Alex for reviewing. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-09Fixed a bunch more tests that were failing in Oracle due to false ↵Ian Kelly
assumptions about the primary keys of objects. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-11Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft ↵Russell Keith-Magee
patch, and to Luke, Karen, Justin, Alex, Łukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-30Fixed #14162 - Dumpdata needs an option to use the base manager instead of ↵Luke Plant
the default manager Thanks to PaulM for suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13669 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-06Fixed #12775 -- Modified the --exclude argument to dumpdata to allow ↵Russell Keith-Magee
exclusion of individual models. Thanks to emulbreh for the suggestion, and Joshua Ginsberg for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Corrected pre-Python 2.6 syntax incompatibility from r13319. Thanks to Karen ↵Russell Keith-Magee
Tracey for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13322 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Fixed #13636 -- Migrated fixtures tests to use unittests, eliminating ↵Russell Keith-Magee
another set of expensive flush calls. Thanks to Eric Holscher for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13319 bcc190cf-cafb-0310-a4f2-bffc1f526a37