Skip to content

Commit

Permalink
fix bug in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sann5 committed Jan 19, 2024
1 parent 2cdae75 commit 205913a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions q2_moshpit/eggnog/tests/test_dbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ def test_fetch_eggnog_fasta(self, subp_run):
# Check that commands are ran as expected
subp_run.assert_has_calls([first_call, second_call], any_order=False)

@patch("q2_moshpit.eggnog._dbs._make_version_df")
@patch("q2_moshpit.eggnog._dbs._write_version_tsv")
@patch("subprocess.run")
def test_fetch_ncbi_taxonomy(self, subp_run, mk_v_df):
def test_fetch_ncbi_taxonomy(self, subp_run, w_v_tsv):
# Call function. Patching will make sure nothing is actually ran
ncbi_data = fetch_ncbi_taxonomy()
zip_path = os.path.join(str(ncbi_data), "taxdmp.zip")
Expand Down Expand Up @@ -196,7 +196,7 @@ def test_fetch_ncbi_taxonomy(self, subp_run, mk_v_df):
[first_call, second_call, third_call, forth_call],
any_order=False
)
mk_v_df.assert_called_once_with(
w_v_tsv.assert_called_once_with(
nodes_path,
names_path,
proteins_path,
Expand Down

0 comments on commit 205913a

Please sign in to comment.