def load_biosql_ini(DBTYPE):
 if (not os.path.isfile('biosql.ini')):
  raise MissingExternalDependencyError('BioSQL test configuration file biosql.ini missing (see biosql.ini.sample)')
 config = configparser.ConfigParser()
 config.read('biosql.ini')
 DBHOST = config.get(DBTYPE, 'dbhost')
 DBUSER = config.get(DBTYPE, 'dbuser')
 DBPASSWD = config.get(DBTYPE, 'dbpasswd')
 TESTDB = config.get(DBTYPE, 'testdb')
 return (DBHOST, DBUSER, DBPASSWD, TESTDB)

def load_biosql_ini ( DBTYPE ) : if ( not os . path . isfile ( 'biosql.ini' ) ) : raise MissingExternalDependencyError ( 'BioSQL test configuration file biosql.ini missing (see biosql.ini.sample)' ) config = configparser . ConfigParser ( ) config . read ( 'biosql.ini' ) DBHOST = config . get ( DBTYPE , 'dbhost' ) DBUSER = config . get ( DBTYPE , 'dbuser' ) DBPASSWD = config . get ( DBTYPE , 'dbpasswd' ) TESTDB = config . get ( DBTYPE , 'testdb' ) return ( DBHOST , DBUSER , DBPASSWD , TESTDB )
load the database settings from ini file .