Skip to content

Commit

Permalink
verify output
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Jun 16, 2021
1 parent 207a813 commit 14a88a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sourmash/sig/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def filter_fn(it):
notify("extracted {} signatures from {} file(s)", len(save_sigs),
len(args.signatures))
if picklist:
notify(f"for given picklist, found {len(picklist.found)} matches of {len(picklist.pickset)} total")
notify(f"for given picklist, found {len(picklist.found)} matches to {len(picklist.pickset)} distinct values")
n_missing = len(picklist.pickset - picklist.found)
if n_missing:
notify(f"WARNING: {n_missing} missing picklist values.")
Expand Down
8 changes: 8 additions & 0 deletions tests/test_cmd_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,14 @@ def test_sig_extract_8_picklist_md5(runtmp):

assert actual_extract_sig == test_extract_sig

err = runtmp.last_result.err

print(err)
assert "loaded 1 distinct values into picklist." in err
assert "loaded 2 total that matched ksize & molecule type" in err
assert "extracted 1 signatures from 2 file(s)" in err
assert "for given picklist, found 1 matches to 1 distinct values" in err


def test_sig_extract_8_picklist_name(runtmp):
# extract 47 from 47, using a picklist w/full md5
Expand Down

0 comments on commit 14a88a7

Please sign in to comment.