Skip to content

Commit

Permalink
leave out BLASTDB_LMDB_MAP_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
rvosa committed Oct 3, 2024
1 parent 0988c37 commit 4359c07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_taxonomy.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_init(blast_runner, mock_config):
blast_runner.blastn.set_word_size.assert_called_once_with(11)
blast_runner.blastn.set_task.assert_called_once_with('megablast')
blast_runner.blastn.set_outfmt.assert_called_once_with("6 qseqid sseqid pident length qstart qend sstart send evalue bitscore staxids")
assert blast_runner.BLASTDB_LMDB_MAP_SIZE == 1000000000
# assert blast_runner.BLASTDB_LMDB_MAP_SIZE == 1000000000
assert blast_runner.BLASTDB == '/path/to/blastdb'

@patch('barcode_validator.taxonomy.tempfile.NamedTemporaryFile')
Expand All @@ -58,10 +58,10 @@ def test_run_localblast(mock_environ, mock_seqio_write, mock_temp_file, blast_ru
assert result == ['Family1', 'Family2']
mock_seqio_write.assert_called_once()
blast_runner.blastn.set_query.assert_called_once_with('temp_file.fasta')
blast_runner.blastn.set_taxids.assert_called_once_with('1234')
blast_runner.blastn.set_taxids.assert_called_once_with(['1234'])
blast_runner.blastn.set_out.assert_called_once_with('temp_file.fasta.tsv')
blast_runner.blastn.run.assert_called_once()
mock_environ.__setitem__.assert_any_call('BLASTDB_LMDB_MAP_SIZE', '1000000000')
#mock_environ.__setitem__.assert_any_call('BLASTDB_LMDB_MAP_SIZE', '1000G')
mock_environ.__setitem__.assert_any_call('BLASTDB', '/path/to/blastdb')

def test_run_localblast_empty_sequence(blast_runner):
Expand Down

0 comments on commit 4359c07

Please sign in to comment.