[Checkins] [zopefoundation/zope.sqlalchemy] 47ab3f: Restore possibility to change keep_session param.

Michael Howitz noreply at github.com
Wed Nov 27 18:27:59 CET 2019


  Branch: refs/heads/icemac-patch-1
  Home:   https://github.com/zopefoundation/zope.sqlalchemy
  Commit: 47ab3f14f49c55be9758d0a8511609f0a42749f8
      https://github.com/zopefoundation/zope.sqlalchemy/commit/47ab3f14f49c55be9758d0a8511609f0a42749f8
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-11-27 (Wed, 27 Nov 2019)

  Changed paths:
    M src/zope/sqlalchemy/datamanager.py

  Log Message:
  -----------
  Restore possibility to change keep_session param.

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.




More information about the checkins mailing list