Skip to content

Commit

Permalink
Needs tool name
Browse files Browse the repository at this point in the history
  • Loading branch information
rvosa committed Sep 26, 2024
1 parent f20169c commit 4aaa2b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
@pytest.fixture
def mock_config():
config = Mock(spec=Config)
config.get.side_effect = lambda key: {
config.get.side_effect = lambda key, default=None: {
'level': 'family',
'constrain': 'order',
'hmm_file': 'mock_hmm.hmm',
'translation_table': 1,
'ncbi_taxonomy': 'mock_ncbi.tar.gz',
'bold_sheet_file': 'mock_bold.xlsx',
'log_level': 'ERROR',
}[key]
'tool_name': 'hmmalign',
}.get(key, default)
return config


Expand Down

0 comments on commit 4aaa2b2

Please sign in to comment.