def test_populate_hpo(connection, hpo_terms, mim_terms): """docstring for test_populate_hpo""" populate_hpo( connection=connection, hpo_terms=hpo_terms, ) cursor = get_cursor(connection=connection) cursor.execute("SELECT * from hpo where hpo_id = '1459'") for row in cursor.fetchmany(): assert row['description'] == "1-3 toe syndactyly" assert row['name'] == "HP:0001459"
def database(request, connection, hpo_terms, mim_terms, genes): """Return a populated database""" populate_hpo( connection=connection, hpo_terms=hpo_terms, ) populate_disease( connection=connection, disease_terms=mim_terms ) populate_genes( connection=connection, genes=genes ) return connection