Re: [sqlalchemy] Trying to get a 'global' session to work for SQLAlchemy database library tests

2013-10-13 Thread Michael Bayer
On Oct 11, 2013, at 9:32 PM, Ken Lareau klar...@tagged.com wrote: I have this at the end of my init_session(): Session.configure(bind=engine) but I'm assuming that's not enough? I don't have a full code example in front of me but I'd imagine that the recipe you're using is injecting

[sqlalchemy] Trying to get a 'global' session to work for SQLAlchemy database library tests

2013-10-11 Thread Ken Lareau
In the process of trying to find an efficient way to manage a test database for a large set of tests for a database library I'm writing that uses SQLAlchemy, I came across this page: http://alextechrants.blogspot.fi/2013/08/unit-testing-sqlalchemy-apps.html This is definitely what I want to do,

Re: [sqlalchemy] Trying to get a 'global' session to work for SQLAlchemy database library tests

2013-10-11 Thread Michael Bayer
On Oct 11, 2013, at 7:14 PM, Ken Lareau klar...@tagged.com wrote: In the process of trying to find an efficient way to manage a test database for a large set of tests for a database library I'm writing that uses SQLAlchemy, I came across this page:

Re: [sqlalchemy] Trying to get a 'global' session to work for SQLAlchemy database library tests

2013-10-11 Thread Ken Lareau
On Fri, Oct 11, 2013 at 5:53 PM, Michael Bayer mike...@zzzcomputing.comwrote: On Oct 11, 2013, at 7:14 PM, Ken Lareau klar...@tagged.com wrote: In the process of trying to find an efficient way to manage a test database for a large set of tests for a database library I'm writing that uses