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)
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)
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)
def initialize(): """Initialize the module.""" db_options.set_defaults( sql_connection="sqlite:///keystone.db", sqlite_db="keystone.db")