示例#1
0
文件: manage.py 项目: ajarr/manila
 def version(self):
     """Print the current database version."""
     print(migration.version())
示例#2
0
 def version(self):
     """Print the current database version."""
     print(migration.version())
 def test_version(self):
     context = mock.Mock()
     context.get_current_revision = mock.Mock()
     alembic.migration.MigrationContext.configure.return_value = context
     migration.version()
     context.get_current_revision.assert_called_once_with()
示例#4
0
文件: utils.py 项目: vast-data/manila
def get_recent_db_migration_id():
    return migration.version()
示例#5
0
文件: utils.py 项目: openstack/manila
def get_recent_db_migration_id():
    return migration.version()