Skip to content

Commit

Permalink
added tests for decoy file in conjunction to --aggregate
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaezp committed Jul 20, 2021
1 parent d69167f commit 0542a5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/system_tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ def test_cli_aggregate(tmp_path, scope_files):
subprocess.run(cmd, check=True)
assert Path(tmp_path, "blah.mokapot.psms.txt").exists()
assert Path(tmp_path, "blah.mokapot.peptides.txt").exists()
assert not Path(tmp_path, "blah.mokapot.decoy.psms.txt").exists()
assert not Path(tmp_path, "blah.mokapot.decoy.peptides.txt").exists()

# Test that decoys are also in the output when --keep_decoys is used
cmd += ["--keep_decoys"]
subprocess.run(cmd, check=True)
assert Path(tmp_path, "blah.mokapot.decoy.psms.txt").exists()
assert Path(tmp_path, "blah.mokapot.decoy.peptides.txt").exists()


def test_cli_fasta(tmp_path, phospho_files):
Expand Down

0 comments on commit 0542a5f

Please sign in to comment.