test/rbbt/sources/test_biomart.rb in rbbt-sources-3.0.13 vs test/rbbt/sources/test_biomart.rb in rbbt-sources-3.0.14

- old
+ new

@@ -14,11 +14,11 @@ def teardown BioMart.unset_archive end - def test_get + def _test_get assert_raise BioMart::QueryError do BioMart.get('scerevisiae_gene_ensembl','entrezgene', ['protein_id'],['with_unknownattr']) end data = BioMart.get('scerevisiae_gene_ensembl','entrezgene', ['protein_id'],[], nil, :nocache => false, :merge => true, :wget_options => {:quiet => false}) @@ -28,10 +28,10 @@ data = BioMart.get('scerevisiae_gene_ensembl','entrezgene', ['external_gene_id'],[], data, :nocache => false, :wget_options => { :quiet => false} ) tsv = TSV.open data, :double, :merge => true assert(tsv['852236'][1].include? 'YBL044W') end - def test_query + def _test_query data = BioMart.query('scerevisiae_gene_ensembl','entrezgene', ['protein_id','refseq_peptide','external_gene_id','ensembl_gene_id'], [], nil, :nocache => false, :wget_options => { :quiet => false}) assert(data['852236']['external_gene_id'].include? 'YBL044W') TmpFile.with_file do |f| filename = BioMart.query('scerevisiae_gene_ensembl','entrezgene', ['protein_id','refseq_peptide','external_gene_id','ensembl_gene_id'], [], nil, :nocache => false, :wget_options => { :quiet => false}, :filename => f)