From ef55d9769c50e12af6252f9fae78f5aa3bf42670 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Mon, 3 May 2021 10:43:07 +0300 Subject: minor fixes for tiss correlation tests and naming --- tests/unit/computations/test_correlation.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/unit/computations') diff --git a/tests/unit/computations/test_correlation.py b/tests/unit/computations/test_correlation.py index c6fa35e..6414c3b 100644 --- a/tests/unit/computations/test_correlation.py +++ b/tests/unit/computations/test_correlation.py @@ -235,12 +235,12 @@ class TestCorrelation(TestCase): primary_tissue_values = [1.1, 1.5, 2.3] target_tissues_values = [1, 2, 3] mock_compute_corr_coeff.side_effect = [(0.4, 0.9), (-0.2, 0.91)] - expected_tissue_results = { - 'tissue_corr': 0.4, 'p_value': 0.9, "tissue_number": 3} - + expected_tissue_results = {"1456_at": {"tissue_corr": 0.4, + "p_value": 0.9, "tissue_number": 3}} tissue_results = tissue_correlation_for_trait_list( primary_tissue_values, target_tissues_values, - corr_method="pearson", compute_corr_p_value=mock_compute_corr_coeff) + corr_method="pearson", trait_id="1456_at", + compute_corr_p_value=mock_compute_corr_coeff) self.assertEqual(tissue_results, expected_tissue_results) -- cgit v1.2.3