diff options
author | zsloan | 2021-05-27 21:09:18 +0000 |
---|---|---|
committer | zsloan | 2021-05-27 21:09:18 +0000 |
commit | f69eb61c5f58b008233f7bee0e551fe9151c7724 (patch) | |
tree | b1e221a16abfac9cefb9237adb30f06085c5633c /wqflask | |
parent | 767ff7e97a751f164da610b2f9c536b6660ec420 (diff) | |
download | genenetwork2-f69eb61c5f58b008233f7bee0e551fe9151c7724.tar.gz |
Change test_rqtl_mapping.py to account for full results being returned from the GN3 request
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 a7f708e1..9a5162ae 100644 --- a/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py +++ b/wqflask/tests/unit/wqflask/marker_regression/test_rqtl_mapping.py @@ -25,8 +25,11 @@ class TestRqtlMapping(unittest.TestCase): mock_write_pheno_file.return_value = "pheno_filename" mock_locate.return_value = "geno_filename" - mock_post.return_value = {"output_file": "output_filename", - "rqtl_cmd": "the_command"} + mock_post.return_value = Mock(ok=True) + mock_post.return_value.json.return_value = {"perm_results": [], + "suggestive": 3, + "significant": 4, + "results" : []} results = run_rqtl(trait_name="the_trait", vals=[], samples=[], dataset=dataset, mapping_scale="cM", model="normal", method="hk", |