summaryrefslogtreecommitdiff
path: root/test/engine/transaction.py
Commit message (Collapse)AuthorAgeFilesLines
* - unit tests have been migrated from unittest to nose.Mike Bayer2009-06-101-833/+0
| | | | | See README.unittests for information on how to run the tests. [ticket:970]
* Modified fails_on testing decorator to take a reason for the failure.Michael Trier2008-12-121-2/+2
| | | | | This should assist with helping to document the reasons for testing failures. Currently unspecified failures are defaulted to 'FIXME: unknown'.
* - added test for threadlocal not supporting begin_nested()Mike Bayer2008-05-181-0/+4
| | | | | - removed query.compile(); use explicit query.with_labels().statement instead - moved statement annotation step upwards from query._compile_context() to outliers from_self()/statement. speeds zoomark.step_6_editing by 16%
* - Removed @unsupportedJason Kirtland2008-05-141-16/+16
|
* Test suite modernization in progress. Big changes:Jason Kirtland2008-05-091-18/+18
| | | | | | | | | | | - @unsupported now only accepts a single target and demands a reason for not running the test. - @exclude also demands an exclusion reason - Greatly expanded @testing.requires.<feature>, eliminating many decorators in the suite and signficantly easing integration of multi-driver support. - New ORM test base class, and a featureful base for mapped tests - Usage of 'global' for shared setup going away, * imports as well
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-88/+63
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* Savepoints are supported under FirebirdLele Gaifax2008-04-271-3/+3
|
* - implemented two-phase API for "threadlocal" engine,Mike Bayer2008-02-261-0/+26
| | | | | via engine.begin_twophase(), engine.prepare() [ticket:936]
* - updated the naming scheme of the base test classes in test/testlib/testing.py;Mike Bayer2008-02-111-5/+5
| | | | | tests extend from either TestBase or ORMTest, using additional mixins for special assertion methods as needed
* - added "autocommit=True" kwarg to select() and text(),Mike Bayer2008-01-311-0/+75
| | | | | | | | | as well as generative autocommit() method on select(); for statements which modify the database through some user-defined means other than the usual INSERT/UPDATE/ DELETE etc., this flag will enable "autocommit" behavior during execution if no transaction is in progress [ticket:915]
* - testbase is gone, replaced by testenvJason Kirtland2008-01-121-31/+31
| | | | | | - Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase - testing.db has the configured db - Fixed up the perf/* scripts
* - Removed @testing.supported. Dialects in development or maintained outsideJason Kirtland2007-12-131-68/+79
| | | | | | | | | | | the tree can now run the full suite of tests out of the box. - Migrated most @supported to @fails_on, @fails_on_everything_but, or (last resort) @unsupported. @fails_on revealed a slew of bogus test skippage, which was corrected. - Added @fails_on_everything_but. Yes, the first usage *was* "fails_on_everything_but('postgres')". How did you guess! - Migrated @supported in dialect/* to the new test-class attribute __only_on__. - Test classes can also have __unsupported_on__ and __excluded_on__.
* fixed the previous TLTransaction checkinMike Bayer2007-11-071-6/+2
|
* - fixed the close() method on Transaction when using strategy='threadlocal'Mike Bayer2007-11-071-1/+27
|
* - inlined a couple of context variablesMike Bayer2007-10-271-11/+11
| | | | - PG two phase was calling text() without the correct bind param format, previous compiler checkin revealed issue
* - Added initial version of MaxDB dialect.Jason Kirtland2007-10-231-6/+6
| | | | - All optional test Sequences are now optional=True
* change the in_ API to accept a sequence or a selectable [ticket:750]Ants Aasma2007-10-161-1/+1
|
* - fix multiple consequent two phase transactions not working with postgres. ↵Ants Aasma2007-10-081-1/+30
| | | | | | For some reason implicit transactions are not enough. [ticket:810] - add an option to scoped session mapper extension to not automatically save new objects to session.
* - Explicitly close connections in the FOR UPDATE tests.Jason Kirtland2007-09-271-2/+3
| | | | - Minor housekeeping.
* - added close() method to Transaction. closes out a transaction using rollbackMike Bayer2007-08-171-0/+43
| | | | | | | | | if it's the outermost transaction, otherwise just ends without affecting the outer transaction. - transactional and non-transactional Session integrates better with bound connection; a close() will ensure that connection transactional state is the same as that which existed on it before being bound to the Session.
* - threadlocal TLConnection, when closes for real, forces parent TLSessionMike Bayer2007-08-171-1/+17
| | | | to rollback/dispose of transaction
* - fixed compiler bug in mssqlMike Bayer2007-08-121-3/+3
| | | | | | - marked as unsupported for mssql all two-phase and nested transcation tests - marked as unsupported for mssql various transactional/session tests which require two connections looking at uncommitted/external data at the same time (ms-sql cant handle it) - put better explicit closeout step in unitofwork.py tests to appease ms-sqls hard locking
* MSSQL: disable new 0.4 tests that cause hangsPaul Johnston2007-08-121-3/+3
|
* attempting to get oracle XID to work. not there yet.Mike Bayer2007-08-111-1/+1
|
* repaired oracle savepoint implementationMike Bayer2007-08-111-2/+2
|
* - Dialects can be queried for the server version (sqlite and mysql only with ↵Jason Kirtland2007-08-031-1/+12
| | | | | | | | | | | | | | this commit) - Mark everything in a test suite as failed when setUpAll fails. - Added test coverage for Unicode table names in metadata.reflect() - @testing.exclude() filters out tests by server version - Applied exclude to the test suite, MySQL 4.1 passes again (no XA or SAVEPOINT) - Removed MySQL charset-setting pool hook- charset=utf8&use_unicode=0 works just as well. (Am I nuts? I'd swear this didn't work before.) - Finally migrated some old MySQL-tests into the dialect test module - Corrected 'commit' and 'rollback' logic (and comment) for ancient MySQL versions lacking transactions entirely - Deprecated the MySQL get_version_info in favor of server_version_info - Added a big hunk-o-doc for MySQL.
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-13/+281
| | | | maintenance branch in branches/rel_0_3.
* revert old unittest patch for MSSQLRick Morrison2007-02-151-1/+1
|
* test patches from [ticket:422]Mike Bayer2007-01-231-1/+1
|
* added additional unit test to test that commit errors are detected, rollback ↵Mike Bayer2006-12-141-0/+18
| | | | occurs in an except:
* added InnoDB for mysql so that all tranactional tests pass for mysqlMike Bayer2006-12-141-11/+3
|
* - logging is now implemented via standard python "logging" module.Mike Bayer2006-09-241-1/+1
| | | | | | | | | | | | | "echo" keyword parameters are still functional but set/unset log levels for their respective classes/instances. all logging can be controlled directly through the Python API by setting INFO and DEBUG levels for loggers in the "sqlalchemy" namespace. class-level logging is under "sqlalchemy.<module>.<classname>", instance-level logging under "sqlalchemy.<module>.<classname>.<hexid>". Test suite includes "--log-info" and "--log-debug" arguments which work independently of --verbose/--quiet. Logging added to orm to allow tracking of mapper configurations, row iteration fixes [ticket:229] [ticket:79]
* - fixed bug where Connection wouldnt lose its TransactionMike Bayer2006-09-121-0/+32
| | | | after commit/rollback
* identified another TLTransaction scenario, and adjusted ↵Mike Bayer2006-06-221-0/+21
| | | | TLConnection/TLSession to fix this as well (reverted previous change, and overriding in_transaction() instead)
* TLConnection insures that it is used to create a transaction via the session ↵Mike Bayer2006-06-221-0/+32
| | | | when begin() is called, so that it has proper transactional context, + unittests
* fixed nested rollbacksMike Bayer2006-06-141-5/+31
|
* more fixes to transaction nesting, interacts better with close() statementMike Bayer2006-06-051-2/+23
|
* reorganized unit tests into subdirectoriesMike Bayer2006-06-051-0/+210