aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander Kabui2020-11-27 19:59:17 +0300
committerAlexander Kabui2020-11-27 19:59:17 +0300
commit7f35213b64707e7c61affb6fa376f561200ac1d6 (patch)
tree8f9a2d247e23e7fc1052f857ae17d84ad10b56c6 /wqflask
parent8485dfd5aa02f451a646f643f503ccb02779430b (diff)
downloadgenenetwork2-7f35213b64707e7c61affb6fa376f561200ac1d6.tar.gz
move tests to unit folder
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py (renamed from wqflask/tests/wqflask/marker_regression/test_gemma_mapping.py)6
-rw-r--r--wqflask/tests/unit/wqflask/marker_regression/test_plink_mapping.py (renamed from wqflask/tests/wqflask/marker_regression/test_plink_mapping.py)0
-rw-r--r--wqflask/tests/unit/wqflask/marker_regression/test_qtlreaper_mapping.py (renamed from wqflask/tests/wqflask/marker_regression/test_qtlreaper_mapping.py)0
-rw-r--r--wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py (renamed from wqflask/tests/wqflask/marker_regression/test_rqtl_mapping.py)0
-rw-r--r--wqflask/tests/unit/wqflask/marker_regression/test_run_mapping.py (renamed from wqflask/tests/wqflask/marker_regression/test_run_mapping.py)4
5 files changed, 5 insertions, 5 deletions
diff --git a/wqflask/tests/wqflask/marker_regression/test_gemma_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py
index 4fafd95a..5b621264 100644
--- a/wqflask/tests/wqflask/marker_regression/test_gemma_mapping.py
+++ b/wqflask/tests/unit/wqflask/marker_regression/test_gemma_mapping.py
@@ -15,7 +15,7 @@ class AttributeSetter:
setattr(self, key, val)
-class MockDatasetGroup(AttributeSetter):
+class MockGroup(AttributeSetter):
def get_samplelist(self):
return None
@@ -55,7 +55,7 @@ class TestGemmaMapping(unittest.TestCase):
for i in range(1, 5):
chromosomes.append(AttributeSetter({"name": f"CH{i}"}))
chromo = AttributeSetter({"chromosomes": chromosomes})
- dataset_group = MockDatasetGroup(
+ dataset_group = MockGroup(
{"name": "GP1", "genofile": "file_geno"})
dataset = AttributeSetter({"group": dataset_group, "name": "dataset1_name",
"species": AttributeSetter({"chromosomes": chromo})})
@@ -113,7 +113,7 @@ class TestGemmaMapping(unittest.TestCase):
create_dataset.side_effect = create_trait_side_effect
create_trait.side_effect = create_trait_side_effect
- group = MockDatasetGroup({"name": "group_X", "samplelist": samplelist})
+ group = MockGroup({"name": "group_X", "samplelist": samplelist})
this_dataset = AttributeSetter({"group": group})
flat_files.return_value = "Home/Genenetwork"
diff --git a/wqflask/tests/wqflask/marker_regression/test_plink_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_plink_mapping.py
index 428f45b9..428f45b9 100644
--- a/wqflask/tests/wqflask/marker_regression/test_plink_mapping.py
+++ b/wqflask/tests/unit/wqflask/marker_regression/test_plink_mapping.py
diff --git a/wqflask/tests/wqflask/marker_regression/test_qtlreaper_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_qtlreaper_mapping.py
index b47f877a..b47f877a 100644
--- a/wqflask/tests/wqflask/marker_regression/test_qtlreaper_mapping.py
+++ b/wqflask/tests/unit/wqflask/marker_regression/test_qtlreaper_mapping.py
diff --git a/wqflask/tests/wqflask/marker_regression/test_rqtl_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py
index 69f53721..69f53721 100644
--- a/wqflask/tests/wqflask/marker_regression/test_rqtl_mapping.py
+++ b/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py
diff --git a/wqflask/tests/wqflask/marker_regression/test_run_mapping.py b/wqflask/tests/unit/wqflask/marker_regression/test_run_mapping.py
index a134f551..4129cc0c 100644
--- a/wqflask/tests/wqflask/marker_regression/test_run_mapping.py
+++ b/wqflask/tests/unit/wqflask/marker_regression/test_run_mapping.py
@@ -17,7 +17,7 @@ class AttributeSetter:
setattr(self, k, v)
-class MockDataSetGroup(AttributeSetter):
+class MockGroup(AttributeSetter):
def get_genofiles(self):
return [{"location": "~/genofiles/g1_file", "sample_list": ["S1", "S2", "S3", "S4"]}]
@@ -26,7 +26,7 @@ class MockDataSetGroup(AttributeSetter):
class TestRunMapping(unittest.TestCase):
def setUp(self):
- self.group = MockDataSetGroup(
+ self.group = MockGroup(
{"genofile": "~/genofiles/g1_file", "name": "GP1_", "species": "Human"})
chromosomes = {
"3": AttributeSetter({