oslo.db/oslo_db/tests
Mike Bayer 5b36e169ea Add "is_started" flag to enginefacade
Some module reloading scenarios such as that which occurs
within mod_wsgi mean that an existing module-level enginefacade
is already in the "started" state, however initialization
routines from the calling application may still attempt to
call the ``.configure`` method.  Add a new flag is_started
to both _TransactionContextManager and _TransactionFactory so
that calling code can check for this state ahead of time;
additionally, promote the TypeError raised to a specific subclass
enginefacade.AlreadyStartedError to allow for better optimistic
schemes.

Change-Id: I2f5a9e35c2fae0c28b78beef3dcd2c4794362766
References: I704196711d30c1124e713ac31111a8ea6fa2f1ba
2018-10-24 13:45:50 -04:00
..
sqlalchemy Add "is_started" flag to enginefacade 2018-10-24 13:45:50 -04:00
__init__.py Test that concurrent sqlalchemy transactions don't block 2015-07-16 20:20:45 +10:00
base.py Move files out of the namespace package 2014-12-24 13:28:48 +02:00
test_api.py Improve exponential backoff for wrap_db_retry 2018-04-13 09:26:12 +08:00
test_concurrency.py Fix parameters of assertEqual are misplaced 2016-07-20 18:11:34 +08:00
utils.py Update Oslo imports to remove namespace package 2015-01-21 18:23:56 -05:00