nova/nova/tests/unit/db
Matthew Booth cf74d24032 Fix configure() called after DatabaseAtVersion fixture
DatabaseAtVersion causes the transaction context manager of its
database to be started, but doesn't set SESSION_CONFIGURED as used by
the Database fixture. Consequently, a subsequent test using the
Database fixture will attempt to call configure on a started context
manager, and fail.

We fix this by rolling the functionality of DatabaseAtVersion into
Database.

Change-Id: Ia6b63e0d26df53e611a5a36e5a2eeb09a73e4704
Closes-bug: #1804811
2020-05-22 17:45:14 +01:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py nova-net: Remove unused 'stub_out_db_network_api' 2019-12-12 10:21:00 +00:00
test_db_api.py Merge "db: Remove unused ec2 DB APIs" 2020-03-18 17:53:31 +00:00
test_migration_utils.py Remove oslo_db.sqlalchemy.compat reference 2020-03-04 16:59:48 +00:00
test_migrations.py Add placeholder migrations for Ussuri backports 2020-04-24 09:26:42 +09:00
test_models.py Test that new tables don't use soft deletes 2016-02-04 09:21:31 -05:00
test_sqlalchemy_migration.py Fix configure() called after DatabaseAtVersion fixture 2020-05-22 17:45:14 +01:00