aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexanderlacuna2020-11-28 15:11:06 +0300
committerBonfaceKilz2021-01-06 01:26:38 +0300
commit1666f8d50df090e9a14dbf0f4f195bac079de058 (patch)
treed7f43c7c773b5bd940cd12e69d22107acdbd2380
parent3eda2b13e10937cbd661d6d411286c5b84bcd7cf (diff)
downloadgenenetwork2-1666f8d50df090e9a14dbf0f4f195bac079de058.tar.gz
add test in api/mapping
-rw-r--r--wqflask/tests/unit/wqflask/api/test_mapping.py55
1 files changed, 0 insertions, 55 deletions
diff --git a/wqflask/tests/unit/wqflask/api/test_mapping.py b/wqflask/tests/unit/wqflask/api/test_mapping.py
index 87b18e84..4da1725f 100644
--- a/wqflask/tests/unit/wqflask/api/test_mapping.py
+++ b/wqflask/tests/unit/wqflask/api/test_mapping.py
@@ -13,61 +13,6 @@ class MockGroup(AttributeSetter):
return None
class TestMock(unittest.TestCase):
- # @mock.patch("wqflask.api.mapping.gemma_mapping")
- # @mock.patch("wqflask.api.mapping.nitialize_parameters")
- # @mock.patch("wqflask.api.mapping.retrieve_sample_data")
- # @mock.patch("wqflask.api.mapping.create_trait")
- # @mock.patch("wqflask.api.mapping.data_set")
- # def test_do_mapping_for_api(self,mock_dataset,mock_create_trait,mock_retrieve_data,mock_gemma):
-
- # start_vars={
- # "db":"sql_uri/db_web1",
- # "trait_id":"idsui332rh3ui2t",
- # "limit_to":32.1,
- # }
- # group_samplelist=["S1","S2","S3","S4"]
- # dataset_group=MockGroup({"samplelist":group_samplelist})
- # dataset=AttributeSetter({"type":"Temp","group":dataset_group})
-
- # this_trait_data={
- # "Item1":AttributeSetter({
- # "name":"S1",
- # "value":"V1"
- # }),
-
- # "Item2":AttributeSetter({
- # "name":"S2",
- # "value":"V2"
- # }),
-
- # "Item3":AttributeSetter({
- # "name":"SX",
- # "value":"VX"
- # })
- # }
-
- # this_trait=AttributeSetter({"data":this_trait_data})
-
-
- # mock_dataset.create_dataset.return_value=dataset
-
- # mock_create_trait.return_value=this_trait
- # mock_retrieve_data.return_value=this_trait
-
- # mock_initialize_params={
- # "format":"json",
- # "limit_to":32.1,
- # "mapping_method":"gemma",
- # "maf":0.01,
- # "use_loco":True,
- # "num_perm":0,
- # "perm_check":False
-
- # }
-
- # mock_gemma.return_value=[ ,"filename"]
- # pass
-
def test_initialize_parameters(self):
expected_results={
"format":"json",