Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/select_for_update
Commit message (Collapse)AuthorAgeFilesLines
* Changed database connection duplication technique.Aymeric Augustin2015-09-091-5/+2
| | | | | | This new technique is more straightforward and compatible with test parallelization, where the effective database connection settings no longer match settings.DATABASES.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+4
|
* Removed threading fallback imports.Tim Graham2015-01-281-12/+1
| | | | Django imports threading in many other places without fallback.
* Replaced router.routers usage with ↵wrwrwr2014-12-011-10/+7
| | | | override_settings(DATABASE_ROUTERS); refs #23933.
* Fixed #23061: Avoided setting a limit on a query for get ↵Shai Berger2014-08-051-0/+6
| | | | | | with select_for_update on Oracle Thanks Michael Miller for reporting the issue.
* Fixed #22343 -- Disallowed select_for_update in ↵Shai Berger2014-04-101-2/+24
| | | | | | | | | | autocommit mode The ticket was originally about two failing tests, which are fixed by putting their queries in transactions. Thanks Tim Graham for the report, Aymeric Augustin for the fix, and Simon Charette, Tim Graham & Loïc Bistuer for review.
* Removed legacy transaction management per the ↵Aymeric Augustin2014-03-211-34/+13
| | | | deprecation timeline.
* Imported override_settings from its new location.Aymeric Augustin2013-12-231-1/+1
|
* Fixed #21302 -- Fixed unused imports and import *.Tim Graham2013-11-021-1/+0
|
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+1
|
* Removed some direct settings manipulations in tests; ↵Bouke Haarsma2013-10-211-6/+4
| | | | refs #21230.
* Removed unused local variables in tests.Tim Graham2013-10-191-1/+1
|
* Fixed #21287 -- Fixed E123 pep8 warningsAlasdair Nicol2013-10-181-1/+1
|
* Isolated select_for_update tests a bit more.Florian Apolloner2013-09-241-1/+1
| | | | | | | This change prevents including the multiple_database test models without duplicating the router code (we probably should do this at one point). Refs #21148
* Removed unneeded imports in tests's __init__.py and ↵Florian Apolloner2013-09-091-1/+0
| | | | unified them.
* Fixed #19918 -- Modified select_for_update to run on the ↵Alex Cucu2013-08-061-1/+13
| | | | write database.
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Fixed #20746 -- Removed Python 2.6 specific code/docsTim Graham2013-07-141-14/+0
|
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-1/+1
| | | | Refs #20680.
* Defined available_apps in relevant tests.Aymeric Augustin2013-06-101-0/+2
| | | | Fixed #20483.
* Made transaction.managed a no-op and deprecated it.Aymeric Augustin2013-03-111-3/+0
| | | | | | | | | | | | | | enter_transaction_management() was nearly always followed by managed(). In three places it wasn't, but they will all be refactored eventually. The "forced" keyword argument avoids introducing behavior changes until then. This is mostly backwards-compatible, except, of course, for managed itself. There's a minor difference in _enter_transaction_management: the top self.transaction_state now contains the new 'managed' state rather than the previous one. Django doesn't access self.transaction_state in _enter_transaction_management.
* Used more precise test assertions.Aymeric Augustin2013-03-061-5/+2
|
* Fixed #19861 -- Transaction ._dirty flag improvementAnssi Kääriäinen2013-02-271-16/+7
| | | | | | | | | | | | | | | | | | There were a couple of errors in ._dirty flag handling: * It started as None, but was never reset to None. * The _dirty flag was sometimes used to indicate if the connection was inside transaction management, but this was not done consistently. This also meant the flag had three separate values. * The None value had a special meaning, causing for example inability to commit() on new connection unless enter/leave tx management was done. * The _dirty was tracking "connection in transaction" state, but only in managed transactions. * Some tests never reset the transaction state of the used connection. * And some additional less important changes. This commit has some potential for regressions, but as the above list shows, the current situation isn't perfect either.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+289