コード例 #1
0
ファイル: database.py プロジェクト: townbull/keystone-dtrust
def _initialize_sql_session():
    # Make sure the DB is located in the correct location, in this case set
    # the default value, as this should be able to be overridden in some
    # test cases.
    db_options.set_defaults(
        sql_connection=tests.IN_MEM_DB_CONN_STRING,
        sqlite_db=tests.DEFAULT_TEST_DB_FILE)
コード例 #2
0
ファイル: core.py プロジェクト: atheendra/access_keys
def _initialize_sql_session():
    # Make sure the DB is located in the correct location, in this case set
    # the default value, as this should be able to be overridden in some
    # test cases.
    db_file = DEFAULT_TEST_DB_FILE
    db_options.set_defaults(sql_connection=IN_MEM_DB_CONN_STRING,
                            sqlite_db=db_file)
コード例 #3
0
ファイル: core.py プロジェクト: CBNCloud/MOS-51-Script
def _initialize_sql_session():
    # Make sure the DB is located in the correct location, in this case set
    # the default value, as this should be able to be overridden in some
    # test cases.
    db_file = DEFAULT_TEST_DB_FILE
    db_options.set_defaults(
        sql_connection='sqlite:///%s' % db_file,
        sqlite_db=db_file)
コード例 #4
0
def initialize():
    """Initialize the module."""

    db_options.set_defaults(
        sql_connection="sqlite:///keystone.db",
        sqlite_db="keystone.db")
コード例 #5
0
ファイル: core.py プロジェクト: SUSE-Cloud/keystone
def initialize():
    """Initialize the module."""

    db_options.set_defaults(
        sql_connection="sqlite:///keystone.db",
        sqlite_db="keystone.db")