summaryrefslogtreecommitdiff
path: root/tests/regressiontests/fixtures_regress
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2012-12-24Don't rely on dictionary ordering in testsIan Clelland
2012-12-24Use new TestCase methods for equality comparisonsIan Clelland
2012-12-08Fixed #19357 -- Allow non-ASCII chars in filesystem pathsClaude Paroz
Thanks kujiu for the report and Aymeric Augustin for the review.
2012-10-26Avoid dependence on exact Python exception messagesIan Clelland
2012-10-01Fixed postgres rollback issue with fixture testPreston Holmes
2012-09-30Fixed #9279 -- Added ignorenonexistent option to loaddataPreston Holmes
Thanks to Roman Gladkov for the initial patch and Simon Charette for review.
2012-09-07Cleaned up several test cases, to better isolate state.Alex Gaynor
2012-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
2012-08-21Fixed #18196 -- Improved loaddata error messages.Claude Paroz
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-08-11[py3] Various minor syntax fixes in the test suiteClaude Paroz
2012-08-11[py3] Used six.StringIO to simulate stdout buffer in testsClaude Paroz
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin
2012-06-24Fixed #16317 -- Fixed dumpdata for self-referencing models and natural keysClaude Paroz
Thanks aldaran for the patch.
2012-06-07Fixed #18269 -- Applied unicode_literals for Python 3 compatibility.Claude Paroz
Thanks Vinay Sajip for the support of his django3 branch and Jannis Leidel for the review.
2012-06-07Fixed #10200 -- Raised CommandError when errors happen in loaddata.Claude Paroz
2012-05-26Removed a duplicate test in fixtures_regress.Claude Paroz
test_abort_loaddata_on_error was exactly the same test as test_empty (error is tested in test_error_message).
2012-05-05Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz
Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
2012-01-14Fixed #17530 - Fixture loading with deferred constraints broken for Postgres ↵Luke Plant
for fixtures from multiple dirs/files Thanks to claudep for the review. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17372 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-12-17Fixed various dodgy behavioursAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-29Made a couple of changes for readability and correctness in loaddata.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-29Enhanced loaddata error message printed when no DB fixture is provided.Ramiro Morales
Fixes #7043 by fixing the last code path where a misleading 'No fixtures found.' error message was being shown. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert much of the regression tests to use absolute imports. There's still ↵Alex Gaynor
work to be done though. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-09-26Fixed #16925 -- Make sure a signal is disconnected if the test fails. Thanks ↵Alex Gaynor
to aaugustin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16905 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-13Fixed #14503 -- Unified multiple implementations of test cases assert* ↵Ramiro Morales
methods that verify a given exception is raised by a callable throughout the Django test suite. Replaced them with a new assertRaisesMessage method of a new SimpleTestCase, a lightweight subclass of unittest.TestCase. Both are also available for usage in user tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16610 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-08Added fixtures files missing from [16590].Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-07Fixed #3615: Added support for loading fixtures with forward references on ↵Karen Tracey
database backends (such as MySQL/InnoDB) that do not support deferred constraint checking. Many thanks to jsdalton for coming up with a clever solution to this long-standing issue, and to jacob, ramiro, graham_king, and russellm for review/testing. (Apologies if I missed anyone else who helped here.) git-svn-id: http://code.djangoproject.com/svn/django/trunk@16590 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
2011-02-12Fixed #9964 -- Ensure that all database operations make transactions dirty, ↵Russell Keith-Magee
not just write operations. Many thanks to Shai Berger for his work and persistence on this issue. This is BACKWARDS INCOMPATIBLE for anyone relying on the current behavior that allows manually managed read-only transactions to be left dangling without a manual commit or rollback. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15493 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-26Made a transaction test optional unless transactions are supported.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15325 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12Fixed a test case that was failing in Oracle due to conflation of null and ↵Ian Kelly
empty strings. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14547 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12Fixed #11101: Rewrote the sequence reset SQL for Oracle to prevent it from ↵Ian Kelly
performing an implicit commit that caused all fixtures to be automatically committed, causing a large number of test failures. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14537 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21Fixed test failure when using Python 2.7Luke Plant
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14309 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-10-02Corrected a test failure under MySQL.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-29Modified a fixtures_regress test case to make it more robust to database ↵Russell Keith-Magee
ordering. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-28Migrated fixtures_regress doctests. Thanks to David Brenneman for the patch.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13954 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-18Fixed #13030 -- Corrected natural key deserialization to subclasses. Thanks ↵Russell Keith-Magee
to yishaibeeri for the report and test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-09Fixed #12562: Made Platypus just a tad lighter so it does not trigger ↵Karen Tracey
noticing version-dependent differences in Ptyhon string/float conversions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-22Fixed #1142 -- Added multiple database support.Russell Keith-Magee
This monster of a patch is the result of Alex Gaynor's 2009 Google Summer of Code project. Congratulations to Alex for a job well done. Big thanks also go to: * Justin Bronn for keeping GIS in line with the changes, * Karen Tracey and Jani Tiainen for their help testing Oracle support * Brett Hoerner, Jon Loyens, and Craig Kimmerer for their feedback. * Malcolm Treddinick for his guidance during the GSoC submission process. * Simon Willison for driving the original design process * Cal Henderson for complaining about ponies he wanted. ... and everyone else too numerous to mention that helped to bring this feature into fruition. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-17Fixed #12395 - fixed test suite flushing problems on Postgres, MySQL.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11900 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-12-14Fixed #7052 -- Added support for natural keys in serialization.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-07-27Fixed #11428 -- Ensured that SQL generating commands and dumpdata don't ↵Russell Keith-Magee
include proxy models in their output. Thanks to Anssi Kaariainen for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@11343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-06-09Fixed #11286 -- Ensured that dumpdata uses the default manager, rather than ↵Russell Keith-Magee
always using the manager called `objects`. Thanks to Marc Remolt for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2009-01-03Fixed #9942 -- Added a to_python handler for FloatField to ensure correct ↵Russell Keith-Magee
typing of deserialized data before saving. Underlying problem is analogous to #8298, fixed in [8515]. Thanks to David Larlet <larlet@gmail.com> for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-06Added new fixture file accidentally left out of [9357].Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-11-06Fixed #9011 -- Corrected handling of fixture files that contain errors to ↵Russell Keith-Magee
correctly report the broken fixture name. Thanks to jlrivitti@gmail.com for the report and initial patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-24Fixed #8298: Added a to_python method for integer fields. This ensures that ↵Russell Keith-Magee
the data from deserialized instances is of correct type prior to saving. Thanks to Andrew Badr for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8515 bcc190cf-cafb-0310-a4f2-bffc1f526a37