Skip to content

Commit

Permalink
BUG: fixed kraken2 module names in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keegan-Evans committed Mar 6, 2023
1 parent 3502d02 commit 2af89b4
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions q2_moshpit/kraken2/tests/test_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ def test_construct_output_paths(self, p1):
]
)

@patch("q2_moshpit.classification.Kraken2OutputDirectoryFormat")
@patch("q2_moshpit.classification.Kraken2ReportDirectoryFormat")
@patch("q2_moshpit.classification._get_seq_paths")
@patch("q2_moshpit.classification._construct_output_paths")
@patch("q2_moshpit.classification.run_command")
@patch("q2_moshpit.kraken2.classification.Kraken2OutputDirectoryFormat")
@patch("q2_moshpit.kraken2.classification.Kraken2ReportDirectoryFormat")
@patch("q2_moshpit.kraken2.classification._get_seq_paths")
@patch("q2_moshpit.kraken2.classification._construct_output_paths")
@patch("q2_moshpit.kraken2.classification.run_command")
def test_classify_kraken(self, p1, p2, p3, p4, p5):
manifest = MultiMAGSequencesDirFmt(
self.get_data_path("mags"), "r"
Expand Down Expand Up @@ -222,17 +222,17 @@ def test_classify_kraken(self, p1, p2, p3, p4, p5):
]
)

@patch("q2_moshpit.classification.Kraken2OutputDirectoryFormat")
@patch("q2_moshpit.classification.Kraken2ReportDirectoryFormat")
@patch("q2_moshpit.kraken2.classification.Kraken2OutputDirectoryFormat")
@patch("q2_moshpit.kraken2.classification.Kraken2ReportDirectoryFormat")
@patch(
"q2_moshpit.classification._get_seq_paths",
"q2_moshpit.kraken2.classification._get_seq_paths",
return_value=(1, 2, [3])
)
@patch(
"q2_moshpit.classification._construct_output_paths",
"q2_moshpit.kraken2.classification._construct_output_paths",
return_value=(1, 2)
)
@patch("q2_moshpit.classification.run_command")
@patch("q2_moshpit.kraken2.classification.run_command")
def test_classify_kraken_exception(self, p1, p2, p3, p4, p5):
manifest = MultiMAGSequencesDirFmt(
self.get_data_path("mags"), "r"
Expand All @@ -247,7 +247,7 @@ def test_classify_kraken_exception(self, p1, p2, p3, p4, p5):
):
_classify_kraken(manifest, common_args)

@patch("q2_moshpit.classification._classify_kraken")
@patch("q2_moshpit.kraken2.classification._classify_kraken")
def test_classify_kraken_action(self, p1):
seqs = Artifact.import_data(
'SampleData[MAGs]', self.get_data_path("mags")
Expand Down

0 comments on commit 2af89b4

Please sign in to comment.