aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexanderlacuna2020-11-09 20:26:21 +0300
committerAlexanderlacuna2020-11-09 20:26:21 +0300
commitbf22cc3fbb37147b5e6c3012658fe5e43b696637 (patch)
tree769047bcfc4b170613c3fc4a7baa1e824e6adb42 /wqflask
parentc9c06e3e2df6d9290a7b65607dd819f68290712e (diff)
downloadgenenetwork2-bf22cc3fbb37147b5e6c3012658fe5e43b696637.tar.gz
remove whitespace in marker_regression
Diffstat (limited to 'wqflask')
-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):
-
-
-
-