def database_files_path(test_tmpdir, prefix='GALAXY'):
 environ_var = ('%s_TEST_DBPATH' % prefix)
 if (environ_var in os.environ):
  db_path = os.environ[environ_var]
 else:
  tempdir = tempfile.mkdtemp(dir=test_tmpdir)
  db_path = os.path.join(tempdir, 'database')
 return db_path

def database_files_path ( test_tmpdir , prefix = 'GALAXY' ) : environ_var = ( '%s_TEST_DBPATH' % prefix ) if ( environ_var in os . environ ) : db_path = os . environ [ environ_var ] else : tempdir = tempfile . mkdtemp ( dir = test_tmpdir ) db_path = os . path . join ( tempdir , 'database' ) return db_path
create a mock database/ directory like in galaxy_root .