From ab8b53a50a601cb95dc0b54279246431c791dd70 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Thu, 16 Sep 2021 22:56:21 +0300 Subject: pylint fixes --- tests/unit/computations/test_wgcna.py | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'tests/unit/computations/test_wgcna.py') diff --git a/tests/unit/computations/test_wgcna.py b/tests/unit/computations/test_wgcna.py index 8a68985..9a88515 100644 --- a/tests/unit/computations/test_wgcna.py +++ b/tests/unit/computations/test_wgcna.py @@ -9,20 +9,28 @@ class TestWgcna(TestCase): def test_compose_wgcna_cmd(self): """test for composing wgcna cmd""" - wgcna_cmd = compose_wgcna_cmd("/wgcna.r", "/tmp/wgcna.json") - self.assertEqual(wgcna_cmd, f"Rscript /wgcna.r /tmp/wgcna.json") + wgcna_cmd = compose_wgcna_cmd( + "/wgcna.r", "/tmp/wgcna.json") + self.assertEqual( + wgcna_cmd, "Rscript /wgcna.r /tmp/wgcna.json") - def test_create_json_data(self): + def test_create_json_file(self): """test for writing the data to a csv file""" # # All the traits we have data for (should not contain duplicates) # All the strains we have data for (contains duplicates) - trait_sample_data = {"1425642_at": {"129S1/SvImJ": 7.142, "A/J": 7.31, "AKR/J": 7.49, - "B6D2F1": 6.899, "BALB/cByJ": 7.172, "BALB/cJ": 7.396}, - "1457784_at": {"129S1/SvImJ": 7.071, "A/J": 7.05, "AKR/J": 7.313, - "B6D2F1": 6.999, "BALB/cByJ": 7.293, "BALB/cJ": 7.117}, - "1444351_at": {"129S1/SvImJ": 7.221, "A/J": 7.246, "AKR/J": 7.754, - "B6D2F1": 6.866, "BALB/cByJ": 6.752, "BALB/cJ": 7.269} + trait_sample_data = {"1425642_at": {"129S1/SvImJ": 7.142, + "A/J": 7.31, "AKR/J": 7.49, + "B6D2F1": 6.899, "BALB/cByJ": 7.172, + "BALB/cJ": 7.396}, + "1457784_at": {"129S1/SvImJ": 7.071, "A/J": 7.05, + "AKR/J": 7.313, + "B6D2F1": 6.999, "BALB/cByJ": 7.293, + "BALB/cJ": 7.117}, + "1444351_at": {"129S1/SvImJ": 7.221, "A/J": 7.246, + "AKR/J": 7.754, + "B6D2F1": 6.866, "BALB/cByJ": 6.752, + "BALB/cJ": 7.269} } @@ -32,4 +40,7 @@ class TestWgcna(TestCase): "minModuleSize": 30 } - _results = dump_wgcna_data(expected_input) + results = dump_wgcna_data( + expected_input) + + self.assertEqual(results, {}) -- cgit v1.2.3