From eeb0d6d7ee1b65f1cbe9c32a9f9ee9237189a113 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 29 Oct 2021 07:06:04 +0300 Subject: Fix some linting errors Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi --- tests/unit/computations/test_partial_correlations.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'tests/unit/computations') diff --git a/tests/unit/computations/test_partial_correlations.py b/tests/unit/computations/test_partial_correlations.py index 7ff8b80..ac5eb20 100644 --- a/tests/unit/computations/test_partial_correlations.py +++ b/tests/unit/computations/test_partial_correlations.py @@ -1,7 +1,12 @@ """Module contains tests for gn3.partial_correlations""" from unittest import TestCase -from gn3.computations.partial_correlations import * +from gn3.computations.partial_correlations import ( + fix_samples, + control_samples, + dictify_by_samples, + tissue_correlation, + find_identical_traits) sampleslist = ["B6cC3-1", "BXD1", "BXD12", "BXD16", "BXD19", "BXD2"] control_traits = ( @@ -212,27 +217,27 @@ class TestPartialCorrelations(TestCase): error conditions. """ for primary, target, method, error, error_msg in ( - ((1,2,3), (4,5,6,7), "pearson", + ((1, 2, 3), (4, 5, 6, 7), "pearson", AssertionError, ( "The lengths of the `primary_trait_values` and " "`target_trait_values` must be equal")), - ((1,2,3), (4,5,6,7), "spearman", + ((1, 2, 3), (4, 5, 6, 7), "spearman", AssertionError, ( "The lengths of the `primary_trait_values` and " "`target_trait_values` must be equal")), - ((1,2,3,4), (5,6,7), "pearson", + ((1, 2, 3, 4), (5, 6, 7), "pearson", AssertionError, ( "The lengths of the `primary_trait_values` and " "`target_trait_values` must be equal")), - ((1,2,3,4), (5,6,7), "spearman", + ((1, 2, 3, 4), (5, 6, 7), "spearman", AssertionError, ( "The lengths of the `primary_trait_values` and " "`target_trait_values` must be equal")), - ((1,2,3), (4,5,6), "nonexistentmethod", + ((1, 2, 3), (4, 5, 6), "nonexistentmethod", AssertionError, ( "Method must be one of: pearson, spearman"))): -- cgit v1.2.3