[sqlalchemy] using savepoint transactions in unittests for a webapp which uses a scoped session?

2015-12-20 Thread Gerald Thibault
I've been struggling with this for a few days now, and I've tried a whole slew of different approaches, but I'm just missing something. I started with the example at

Re: [sqlalchemy] using savepoint transactions in unittests for a webapp which uses a scoped session?

2015-12-20 Thread Jeff Widman
Have you seen this? koo.fi/blog/2015/10/22/flask-sqlalchemy-and-postgresql-unit-testing-with-transaction-savepoints/ He's using Flask-SQLAlchemy, but the underlying principles should be the same. It's not quite the same since IIRC he uses nested savepoints for everything rather than scoped

Re: [sqlalchemy] using savepoint transactions in unittests for a webapp which uses a scoped session?

2015-12-20 Thread Mike Bayer
On 12/20/2015 07:16 PM, Gerald Thibault wrote: > I've been struggling with this for a few days now, and I've tried a > whole slew of different approaches, but I'm just missing something. > > I started with the example > at >