diff options
author | Alexanderlacuna | 2020-10-29 17:23:46 +0300 |
---|---|---|
committer | Alexanderlacuna | 2020-10-29 17:23:46 +0300 |
commit | 242c334dbaa84c93a0c45bc80a050cd0e240d81b (patch) | |
tree | a8bbcc77265d2492a280e8d440616a7e94ab3d07 /wqflask/tests | |
parent | 480217fdde68589ad84799c3b5df2c61608494ad (diff) | |
download | genenetwork2-242c334dbaa84c93a0c45bc80a050cd0e240d81b.tar.gz |
add test for show_trait
Diffstat (limited to 'wqflask/tests')
-rw-r--r-- | wqflask/tests/wqflask/show_trait/test_export_trait_data.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/wqflask/tests/wqflask/show_trait/test_export_trait_data.py b/wqflask/tests/wqflask/show_trait/test_export_trait_data.py index adecbf36..488c9d63 100644 --- a/wqflask/tests/wqflask/show_trait/test_export_trait_data.py +++ b/wqflask/tests/wqflask/show_trait/test_export_trait_data.py @@ -16,7 +16,14 @@ class TestExportTraits(unittest.TestCase): "primary_samples": [ { "other": "germanotta", - "name": "Sauroniops" + "name": "Sauroniops", + "se":{ + "name":"S2" + }, + "num_cases":{ + "k1":"value" + + } } ], "other_samples": [ @@ -33,8 +40,13 @@ class TestExportTraits(unittest.TestCase): "dataset": { } } - exp_metadata.return_value = [["Phenotype ID:0a2be192-57f5-400b-bbbd-0cf50135995f"], ['Group:gp1'], ["Phenotype:p1"], [ - "Authors:N/A"], ["Title:research1"], ["Journal:N/A"], ["Dataset Link: http://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&InfoPageName=name1"], []] + exp_metadata.return_value = [ + ["Phenotype ID:0a2be192-57f5-400b-bbbd-0cf50135995f"], ['Group:gp1'], + ["Phenotype:p1"], [ + "Authors:N/A"], + ["Title:research1"], + ["Journal:N/A"], + ["Dataset Link: http://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&InfoPageName=name1"], []] expected = ('Hair_color', [['Phenotype ID:0a2be192-57f5-400b-bbbd-0cf50135995f'], ['Group:gp1'], @@ -45,6 +57,7 @@ class TestExportTraits(unittest.TestCase): ['Dataset Link: ' 'http://gn1.genenetwork.org/webqtl/main.py?FormID=sharinginfo&InfoPageName=name1'], [], + ['Name', 'Value', 'SE', 'N'], ['Sauroniops', 'germanotta'], [3, 6, 1, 4]]) |