Skip to content

Commit

Permalink
add import of sig commands to top-level sig submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Jul 26, 2023
1 parent 9e8bdc1 commit bbf3d64
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/sourmash/sig/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
from .__main__ import main
from .__main__ import * # bring all functions into top-level
from . import grep
9 changes: 9 additions & 0 deletions tests/test_cmd_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ def test_run_sourmash_sig_cmd():
assert status != 0 # no args provided, ok ;)


def test_run_cat_via_parse_args():
# run a command ('sourmash.sig.cat') with args constructed via parse_args
import sourmash.sig, sourmash.cli
sig47 = utils.get_test_data('47.fa.sig')

args = sourmash.cli.parse_args(['sig', 'cat', sig47])
sourmash.sig.cat(args)


def test_sig_merge_1_use_full_signature_in_cmd(runtmp):
c = runtmp

Expand Down

0 comments on commit bbf3d64

Please sign in to comment.