aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wqflask/tests/wqflask/marker_regression/test_plink_mapping.py3
-rw-r--r--wqflask/tests/wqflask/marker_regression/test_run_mapping.py9
2 files changed, 1 insertions, 11 deletions
diff --git a/wqflask/tests/wqflask/marker_regression/test_plink_mapping.py b/wqflask/tests/wqflask/marker_regression/test_plink_mapping.py
index b827fd0f..a5fa0c04 100644
--- a/wqflask/tests/wqflask/marker_regression/test_plink_mapping.py
+++ b/wqflask/tests/wqflask/marker_regression/test_plink_mapping.py
@@ -12,8 +12,6 @@ class AttributeSetter:
def __init__(self, obj):
for key, val in obj.items():
setattr(self, key, val)
-
-
class TestPlinkMapping(unittest.TestCase):
def test_build_line_list(self):
@@ -72,7 +70,6 @@ Expected_2\there
mock_line_list.side_effect = [["0", "AACCAT", "T98.6", "0.89"], [
"2", "AATA", "B45", "0.3"], ["121", "ACG", "B56.4", "NA"]]
- # print("sdfsfdf",species.chromosomes)
with mock.patch("builtins.open", mock.mock_open(read_data=fake_file)) as mock_open:
parse_results = parse_plink_output(
output_filename="P1_file", species=species)
diff --git a/wqflask/tests/wqflask/marker_regression/test_run_mapping.py b/wqflask/tests/wqflask/marker_regression/test_run_mapping.py
index 61bc8a1d..bba9de05 100644
--- a/wqflask/tests/wqflask/marker_regression/test_run_mapping.py
+++ b/wqflask/tests/wqflask/marker_regression/test_run_mapping.py
@@ -2,6 +2,7 @@ import unittest
from unittest import mock
from wqflask.marker_regression.run_mapping import get_genofile_samplelist
from wqflask.marker_regression.run_mapping import geno_db_exists
+from wqflask.marker_regression.run_mapping import write_input_for_browser
class AttributeSetter:
def __init__(self,obj):
@@ -21,20 +22,16 @@ class TestRunMapping(unittest.TestCase):
def tearDown(self):
self.dataset=AttributeSetter({"group":{"location":"~/genofiles/g1_file"}})
-
def test_get_genofile_samplelist(self):
- #location true and sample list true
results_1=get_genofile_samplelist(self.dataset)
self.assertEqual(results_1,["S1","S2","S3","S4"])
- #return empty array
self.group.genofile="~/genofiles/g2_file"
result_2=get_genofile_samplelist(self.dataset)
self.assertEqual(result_2,[])
@mock.patch("wqflask.marker_regression.run_mapping.data_set")
def test_geno_db_exists(self,mock_data_set):
- # mock_data_set.create_dataset_side_effect=None
mock_data_set.create_dataset.side_effect=[AttributeSetter({}),Exception()]
results_no_error=geno_db_exists(self.dataset)
results_with_error=geno_db_exists(self.dataset)
@@ -46,7 +43,3 @@ class TestRunMapping(unittest.TestCase):
-
-
-
-