Before version 1.2 it was possible to change the value of keep_session for certain tests.
We used keep_session=True to ease unittests which are not forced to re-fetch objects from database after a commit. On the other hand selenium tests should behave more like an actual web server which does not keep the session.
So we switched to keep_session=False for some tests with code like this:
https://github.com/gocept/risclog.sqlalchemy/blob/44fe2494337b41e0bc3d5602ebbd7493918d841d/src/risclog/sqlalchemy/fixtures.py#L6
This is no longer possible since zope.sqlalchemy 1.2.
With this commit the ability to access the ZopeTransactionEvents instance is restored.
Before version 1.2 it was possible to change the value of
keep_session
for certain tests. We usedkeep_session=True
to ease unittests which are not forced to re-fetch objects from database after a commit. On the other hand selenium tests should behave more like an actual web server which does not keep the session. So we switched tokeep_session=False
for some tests with code like this: https://github.com/gocept/risclog.sqlalchemy/blob/44fe2494337b41e0bc3d5602ebbd7493918d841d/src/risclog/sqlalchemy/fixtures.py#L6This is no longer possible since zope.sqlalchemy 1.2. With this commit the ability to access the
ZopeTransactionEvents
instance is restored.