Skip to content

Commit ad6aada

Browse files
committed
updated tests to include example data and generate 'run_tests' folder automatically
1 parent bf8e390 commit ad6aada

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ include setup.py
55
include mob_suite/config.json
66
include mob_suite/tests/TestData/*
77
include mob_suite/tests/*.py
8+
include mob_suite/example/*
89

910

1011

mob_suite/tests/test_mobtyper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
def test_mean_and_multireplicon_frame():
1414
logger.info("Testing MOB-typer")
15+
if os.path.exists("run_test") == False:
16+
os.mkdir("run_test")
1517
args = [
1618
"--infile", os.path.dirname(__file__) + "/TestData/pCAV1453-208.fasta",
1719
"--out_file", TEST_ROOT + "/run_test/mobtyper_pCAV1453-208_results.txt",

mob_suite/tests/test_mobtyper_vs_biomarker_report.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import subprocess, os, time, random, sys
1+
import os, time, random, sys
22
from statistics import mean
33
from Bio import SeqIO
44
import pandas as pd
@@ -25,6 +25,9 @@ def clean_missing_dashes(L):
2525

2626

2727
def test_mean_and_multireplicon_frame(mode = None):
28+
if os.path.exists("run_test") == False:
29+
os.mkdir("run_test")
30+
2831
if mode == None:
2932
return 0
3033
logger.info("Testing MOB-typer for biomarker and mobtyper reports consistency in terms of biomarker names (not accessions)")

0 commit comments

Comments
 (0)