Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #4
0
def initialize():
    """Initialize the module."""

    db_options.set_defaults(
        sql_connection="sqlite:///keystone.db",
        sqlite_db="keystone.db")
Beispiel #5
0
def initialize():
    """Initialize the module."""

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