Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/middleware
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #20099 -- Eased subclassing of ↵Claude Paroz2013-05-251-0/+19
| | | | | | | BrokenLinkEmailsMiddleware Thanks Ram Rachum for the report and the initial patch, and Simon Charette for the review.
* Moved IgnorePendingDeprecationWarningsMixin in ↵Aymeric Augustin2013-05-181-3/+1
| | | | | | django.test.utils. This mixin is useful whenever deprecating a large part of Django.
* Fixed #20356 -- Prevented crash when HTTP_REFERER ↵Claude Paroz2013-05-181-1/+9
| | | | | | contains non-ascii Thanks srusskih for the report and Aymeric Augustin for the review.
* Fixed tests that relied on MANAGERS not being empty.Aymeric Augustin2013-03-111-4/+10
| | | | Regression in d0561242.
* Removed a test that no longer makes any sense.Aymeric Augustin2013-03-111-13/+0
| | | | Since unmanaged == autocommit, there's nothing to commit or roll back.
* Added some assertions to enforce the atomicity of atomic.Aymeric Augustin2013-03-111-1/+5
|
* Deprecated transaction.is_managed().Aymeric Augustin2013-03-111-1/+1
| | | | It's synchronized with the autocommit flag.
* Enabled autocommit for PostgreSQL.Aymeric Augustin2013-03-111-0/+5
| | | | | | | | | For users who didn't activate autocommit in their database options, this is backwards-incompatible in "non-managed" aka "auto" transaction state. This state now uses database-level autocommit instead of ORM-level autocommit. Also removed the uses_autocommit feature which lost its purpose.
* Made transaction.managed a no-op and deprecated it.Aymeric Augustin2013-03-111-5/+1
| | | | | | | | | | | | | | 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.
* Fixed #19861 -- Transaction ._dirty flag improvementAnssi Kääriäinen2013-02-271-3/+10
| | | | | | | | | | | | | | | | | | 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.
* Renamed some tests and removed references to ↵Florian Apolloner2013-02-261-11/+11
| | | | modeltests/regressiontests.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-266-0/+764