aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexander Kabui2021-08-20 09:04:12 +0300
committerGitHub2021-08-20 09:04:12 +0300
commitc9ee473ff7797f6bbd7507eb55c772a3a646acee (patch)
treed14302938081ce61637ae84cda2077aaf0db9733 /tests
parentf8be3a85567cc17d50a01382eb10cb3b05436214 (diff)
downloadgenenetwork3-c9ee473ff7797f6bbd7507eb55c772a3a646acee.tar.gz
Minor correlation fixes (#36)
* fix key error for (*tissue_cor) tissue correlation * update tests for tissue correlation * rename speed_compute to fast_compute * pep8 formatting
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/computations/test_correlation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/computations/test_correlation.py b/tests/unit/computations/test_correlation.py
index f2d65bd..fc52ec1 100644
--- a/tests/unit/computations/test_correlation.py
+++ b/tests/unit/computations/test_correlation.py
@@ -406,10 +406,10 @@ class TestCorrelation(TestCase):
target_tissue_data = {"trait_symbol_dict": target_trait_symbol,
"symbol_tissue_vals_dict": target_symbol_tissue_vals}
- mock_tissue_corr.side_effect = [{"tissue_corr": -0.5, "tissue_p_val": 0.9,
- "tissue_number": 3},
- {"tissue_corr": 1.11, "tissue_p_val": 0.2,
- "tissue_number": 3}]
+ mock_tissue_corr.side_effect = [{"1418702_a_at": {"tissue_corr": -0.5, "tissue_p_val": 0.9,
+ "tissue_number": 3}},
+ {"1412_at": {"tissue_corr": 1.11, "tissue_p_val": 0.2,
+ "tissue_number": 3}}]
expected_results = [{"1412_at":
{"tissue_corr": 1.11, "tissue_p_val": 0.2, "tissue_number": 3}},