Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 4, 2024
1 parent 4855569 commit 0ddea9f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/test_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ def test_metagenome_two_queries_with_single_query_output_formats_fail(runtmp):
line = line.replace("test1", "test2") + "\n"
fp.write(line)

csv_summary_out = runtmp.output("tst.summarized.csv")
runtmp.output("tst.summarized.csv")
bioboxes_out = runtmp.output("tst.bioboxes.out")
kreport_out = runtmp.output("tst.kreport.txt")

Expand Down Expand Up @@ -2063,8 +2063,13 @@ def test_metagenome_two_queries_skip_single_query_output_formats(runtmp):
in c.last_result.err
)

assert f"saving 'csv_summary' output to '{os.path.basename(csv_summary_out)}'" in runtmp.last_result.err
sum_gather_results = [x.rstrip() for x in Path(csv_summary_out).read_text().splitlines()]
assert (
f"saving 'csv_summary' output to '{os.path.basename(csv_summary_out)}'"
in runtmp.last_result.err
)
sum_gather_results = [
x.rstrip() for x in Path(csv_summary_out).read_text().splitlines()
]
assert (
"query_name,rank,fraction,lineage,query_md5,query_filename,f_weighted_at_rank,bp_match_at_rank"
in sum_gather_results[0]
Expand All @@ -2080,7 +2085,6 @@ def test_metagenome_two_queries_skip_single_query_output_formats(runtmp):
)



def test_metagenome_two_queries_krona(runtmp):
# for now, we enable multi-query krona. Is this desired?
c = runtmp
Expand Down

0 comments on commit 0ddea9f

Please sign in to comment.