On Jan 18, 2009, at 3:45 PM, Adam Dziendziel wrote:
> > The approach using transactions would be great, but I'm afraid that it > wouldn't work if the system under test uses transactions internally. I > could switch from SQLite to a DBMS which supports nested transactions, > but then I would lost the speed of an in-memory database. it depends on if your tests require a rollback() within the test itself. SQLAlchemy begin()/commit() methods use a "nesting" approach such that they can be nested within a "real" begin/rollback pair. the session may be bound to a connection which has already had begin() called on it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
