summaryrefslogtreecommitdiff
path: root/tests/regressiontests/multiple_database
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-08Cleaned up some lingering signals in the test suite that were causing ↵Julien Phalip
spurious failures with Pypy and Postgres.
2012-12-29Silenced warnings in the tests of deprecated features.Aymeric Augustin
2012-12-24Fixed a randomly failing test under Python 3.Aymeric Augustin
Refs #17758.
2012-11-23Tweak a test to avoid hitting a limit with SQLite.Aymeric Augustin
Django cannot delete more than 999 objects at a time with SQLite. Refs #16426, #16039.
2012-11-22Fixed #16039 -- Made post_syncdb handlers multi-db aware.Aymeric Augustin
Also reverted 8fb7a9002669fb7ba7bec7df90b465b92e1ed3c2. Refs #17055.
2012-10-20Used @override_settings in several tests.Aymeric Augustin
2012-10-09Fixed #19095 -- invalid code in multidb tests.Aymeric Augustin
2012-08-12Fixed #18306 -- Made deferred models issue update_fields on saveAndrei Antoukh
Deferred models now automatically update only the fields which are loaded from the db (with .only() or .defer()). In addition, any field set manually after the load is updated on save.
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-08Switched to using the standard method for comparing querysets in teh templates.Alex Gaynor
2012-08-08[py3] Used compatible imports of StringIO.Aymeric Augustin
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.
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-16Fixed multiple database tests that broke foreign keys constraints. Refs #17055.Aymeric Augustin
The problem was masked by the rollback at the end of each transactional test on backends that deferred constraints checks; it appeared only on MySQL + InnoDB. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-10-13Convert the remainder of the relative imports in the tests to be absolute ↵Alex Gaynor
imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-08-12Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bernhard Essl.Jannis Leidel
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16598 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-07-10Fixed a typo in the `multiple_database` tests. Thanks Jim Dalton.Ramiro Morales
Also, removed some unused imports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-06-10Fixed #16196 - Redundant or incorrect code in testsLuke Plant
Thanks to intelliyole and melinath for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-03-03Updated test assertions that have been deprecated by the move to unittest2. ↵Russell Keith-Magee
In summary, this means: assert_ -> assertTrue assertEquals -> assertEqual failUnless -> assertTrue For full details, see http://www.voidspace.org.uk/python/articles/unittest2.shtml#deprecations git-svn-id: http://code.djangoproject.com/svn/django/trunk@15728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-15Enhanced slightly the tests added in r15185 to demonstrate that #14948 ↵Ramiro Morales
doesn't affect trunk. Refs #14948. Thanks Harm Geerts. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15208 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-14Enhanced tests for r14857 added in r15185. Refs #14870. Thanks Harm Geerts.Ramiro Morales
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2011-01-13Fixed #13668 -- Corrected database router methods invocation for ManyToMany ↵Ramiro Morales
fields without through models. Thanks craig.kimerer for the report and David Gouldin for the fix. This also adds tests for r14857. git-svn-id: http://code.djangoproject.com/svn/django/trunk@15185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16Fixed #14691 -- Made ForeignKey.validate() use the right database. Thanks ↵Ramiro Morales
Marco Paolini for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14580 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12Fixed a multiple_database test case that was failing in Oracle due to forced ↵Ian Kelly
table name capitalization. The test case now matches the style used by the raw_query tests. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-28Fixed #14471 -- Corrected a regression in the use of methods on custom ↵Russell Keith-Magee
managers on related querysets. Thanks to Lucky for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14389 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-10-21Ensure the mutliple_database tests leave the settings in the same state they ↵Alex Gaynor
found them. git-svn-id: http://code.djangoproject.com/svn/django/trunk@14313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-09-13Fix a couple of typos in test names and descriptions.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-20Fixed #14068 -- Corrected error handling in loaddata when an allow_syncdb ↵Russell Keith-Magee
method is defined on the router. Thanks to Xavier Ordoquy for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13612 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-08-07Fixed #13552 -- Added a 'using' parameter to database signals. Thanks to ↵Russell Keith-Magee
gmandx for the suggestion, and Andrew Godwin for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Fixed #13697 -- Modified multiple_database test to avoid a failure observed ↵Russell Keith-Magee
under Python 2.6. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-06-05Migrated multiple_database tests to use new stdout argument on management ↵Russell Keith-Magee
commands, rather than monkeypatching stdout. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-05-11Fixed #13513 -- Ensured that queries collecting deleted objects are issued ↵Russell Keith-Magee
on the right database, especially when dealing with m2m intermediate tables. Thanks to gavoja for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-28Fixed #13432 -- Corrected the logic for router use on OneToOne fields; also ↵Russell Keith-Magee
added a bunch of tests for OneToOneField queries. Thanks to piquadrat for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-16Fixed #13358 -- Ensured that db_manager() can be used to override database ↵Russell Keith-Magee
routing on M2M, reverse FK and generic key queries. Thanks to Craig Kimerer for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12993 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-04-09Fixed #13308 -- Ensured that dumpdata correctly interacts with router ↵Russell Keith-Magee
allow_syncdb directions. Thanks to Francis (wizard_2) for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12940 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-31Fixed #13250 -- Corrected a problem with the use of routing rules on the ↵Russell Keith-Magee
create() call on a Foreign Key. Thanks to chris@xlevus.net for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12895 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-10Fixed #12717 -- Corrected a problem with subqueries when using multidb ↵Russell Keith-Magee
routing. Thanks to Jeff Balogh for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12755 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-03-07Fixed #13003 -- Ensured that ._state.db is set correctly for ↵Russell Keith-Magee
select_related() queries. Thanks to Alex Gaynor for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-02-22Fixed #12864 -- Corrected handling of new user creation when a ↵Russell Keith-Magee
multi-database router is in place. Thanks to haris@dubizzle.com for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-27Made the database master router tolerant of router definitions that omit ↵Russell Keith-Magee
individual routing methods. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-25Fixed #12672 -- Added the ability to configure which applications are ↵Russell Keith-Magee
available on which database. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-01-22Fixed #12540, #12541 -- Added database routers, allowing for configurable ↵Russell Keith-Magee
database use behavior in a multi-db setup, and improved error checking for cross-database joins. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12272 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