Skip to content

Commit

Permalink
updated tests to include example data and generate 'run_tests' folder…
Browse files Browse the repository at this point in the history
… automatically
  • Loading branch information
kbessonov1984 committed Dec 11, 2023
1 parent bf8e390 commit ad6aada
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ include setup.py
include mob_suite/config.json
include mob_suite/tests/TestData/*
include mob_suite/tests/*.py
include mob_suite/example/*



2 changes: 2 additions & 0 deletions mob_suite/tests/test_mobtyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

def test_mean_and_multireplicon_frame():
logger.info("Testing MOB-typer")
if os.path.exists("run_test") == False:
os.mkdir("run_test")
args = [
"--infile", os.path.dirname(__file__) + "/TestData/pCAV1453-208.fasta",
"--out_file", TEST_ROOT + "/run_test/mobtyper_pCAV1453-208_results.txt",
Expand Down
5 changes: 4 additions & 1 deletion mob_suite/tests/test_mobtyper_vs_biomarker_report.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import subprocess, os, time, random, sys
import os, time, random, sys
from statistics import mean
from Bio import SeqIO
import pandas as pd
Expand All @@ -25,6 +25,9 @@ def clean_missing_dashes(L):


def test_mean_and_multireplicon_frame(mode = None):
if os.path.exists("run_test") == False:
os.mkdir("run_test")

if mode == None:
return 0
logger.info("Testing MOB-typer for biomarker and mobtyper reports consistency in terms of biomarker names (not accessions)")
Expand Down

0 comments on commit ad6aada

Please sign in to comment.