aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/tests')
-rw-r--r--wqflask/tests/unit/wqflask/marker_regression/test_plink_mapping.py3
-rw-r--r--wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/wqflask/tests/unit/wqflask/marker_regression/test_plink_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_plink_mapping.py
index 428f45b9..5eec93f1 100644
--- a/wqflask/tests/unit/wqflask/marker_regression/test_plink_mapping.py
+++ b/wqflask/tests/unit/wqflask/marker_regression/test_plink_mapping.py
@@ -14,8 +14,9 @@ class AttributeSetter:
setattr(self, key, val)
class TestPlinkMapping(unittest.TestCase):
+
def test_build_line_list(self):
- """testing for building line list"""
+ """test for building line list"""
line_1 = "this is line one test"
irregular_line = " this is an, irregular line "
exp_line1 = ["this", "is", "line", "one", "test"]
diff --git a/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py
index 69f53721..c585f1df 100644
--- a/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py
+++ b/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py
@@ -19,10 +19,10 @@ class TestRqtlMapping(unittest.TestCase):
@mock.patch("wqflask.marker_regression.rqtl_mapping.logger")
def test_get_trait_data(self,mock_logger,mock_db):
"""test for getting trait data_type return True"""
- caller_value="""SELECT value FROM TraitMetadata WHERE type='trait_data_type'"""
+ query_value="""SELECT value FROM TraitMetadata WHERE type='trait_data_type'"""
mock_db.db.execute.return_value.fetchone.return_value=["""{"type":"trait_data_type","name":"T1","traid_id":"fer434f"}"""]
results=get_trait_data_type("traid_id")
- mock_db.db.execute.assert_called_with(caller_value)
+ mock_db.db.execute.assert_called_with(query_value)
self.assertEqual(results,"fer434f")
def test_sanitize_rqtl_phenotype(self):