sourmash-bio/sourmash

write command-line test for `lca summarize --query-from-file`

Open

#1,451 opened on Apr 11, 2021

 (0 comments) (0 reactions) (0 assignees)Python (94 forks)github user discovery
good first issuepythontesting

Repository metrics

Stars
 (555 stars)
PR merge metrics
 (Avg merge 4h 7m) (8 merged PRs in 30d)

Description

per https://github.com/dib-lab/sourmash/pull/1423/files#r604406992 as well as attached screenshot, we do not currently test sourmash lca summarize --query-from-file

To address this issue:

  • make a copy of test_single_summarize() in tests/test_lca.py and name it something like test_single_summarize_query_from_file();
  • modify the new test to create a text file containing the path to input_sig
  • modify the utils.runscript(...) command to remove --query and instead pass in --query-from-file with the new text file

Contributor guide