Skip to content

Commit

Permalink
add another test that _should_ fail... but doesn't :)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Aug 19, 2023
1 parent a8f134a commit 071e7e6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/python/tests/test_gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,27 @@ def test_against_multisigfile(runtmp):
df = pandas.read_csv(g_output)
assert len(df) == 1
# @CTB this is a bug :(. It should load multiple sketches properly!


def test_query_multisigfile(runtmp):
# test with a sigfile that contains multiple sketches
against_list = runtmp.output('against.txt')

sig2 = get_test_data('2.fa.sig.gz')
sig47 = get_test_data('47.fa.sig.gz')
sig63 = get_test_data('63.fa.sig.gz')

combined = runtmp.output('combined.sig.gz')
runtmp.sourmash('sig', 'cat', sig2, sig47, sig63, '-o', combined)

make_file_list(against_list, [sig2, sig47, sig63])

g_output = runtmp.output('gather.csv')
p_output = runtmp.output('prefetch.csv')

runtmp.sourmash('scripts', 'fastgather', combined, against_list,
'-o', g_output, '--output-prefetch', p_output,
'-s', '100000')
# @CTB this should fail, not succeed :(.
df = pandas.read_csv(g_output)
assert len(df) == 1

0 comments on commit 071e7e6

Please sign in to comment.