Пример #1
0
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
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
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
def initialize():
    """Initialize the module."""

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