Fix a bug when unit test use the local conf O

AttributeError: 'Connection' object has no attribute 'iterdump'

Change-Id: I1bca4617d6d57dd6d62e38b11a109dc87cc6bfcd
This commit is contained in:
gecong1973 2021-01-27 18:14:17 -08:00
parent 34641efcf5
commit 719a3feb60
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ class Database(fixtures.Fixture):
db_options.set_defaults(
CONF,
connection=connection_str)
CONF.set_override('connection', IN_MEM_DB_CONN_STRING,
group='database')
def setup_sqlite(self):
models.register_models(self.engine)