DBSession is like this (not even sure if I need to do it this way, just
following the examples)
DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension
()))
If change to bind=connection
self.session = DBSession(bind=connection)
then I get an error
I've tried to simplify the code but it still isn't working:
from sqlalchemy.orm import scoped_session, sessionmaker
from zope.sqlalchemy import ZopeTransactionExtension
DBSession = scoped_session(sessionmaker(extension=ZopeTransactionExtension
()))
engine =
On Aug 12, 2014, at 7:26 AM, alchemy1 veerukrish...@hotmail.com wrote:
I've tried to simplify the code but it still isn't working:
from sqlalchemy.orm import scoped_session, sessionmaker
from zope.sqlalchemy import ZopeTransactionExtension
DBSession =
I have combined several examples I've found to try to get the
'transactional-style' of unit tests to work, where you roll back the
database after each test. However when I run this, the test fails when
trying to insert the object with DBSession.add, complaining that the tables
don't exist. I
On 08/11/2014 04:37 PM, alchemy1 wrote:
I have combined several examples I've found to try to get the
'transactional-style' of unit tests to work, where you roll back the
database after each test. However when I run this, the test fails when
trying to insert the object with DBSession.add,