def setUpClass(self):
self.DBURI = "postgresql+psycopg2://@:5432/vcfimport"
if database_exists(self.DBURI):
drop_database(self.DBURI)
create_database(self.DBURI)
engine = create_engine(self.DBURI)
models.bind_engine(engine)
self.assembly = "testAssembly"
# test files
with open("test/data/header.vcf", "r") as f:
self.header = f.read()
# create the base config
self.config_path = os.path.abspath(
"utils/example_configs/vcf_import.config")
with open(self.config_path, 'r') as readFP:
self.config = json.load(readFP)
self.config["dburi"] = self.DBURI
评论列表
文章目录