aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorAlexander Kabui2022-03-22 16:20:00 +0300
committerAlexander Kabui2022-03-22 16:20:00 +0300
commitbb622cc5947e6ea896d3b94a1d2c4e0cbd1b26f9 (patch)
treec3e2a678f5e29ccd2b1dc3bb9f055eb02f8bb492 /tests/unit
parent7b2901817a1aabd947483f87b5a2a2d33618de7e (diff)
downloadgenenetwork3-bb622cc5947e6ea896d3b94a1d2c4e0cbd1b26f9.tar.gz
rename compose_wgcna to general func name
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/computations/test_wgcna.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/computations/test_wgcna.py b/tests/unit/computations/test_wgcna.py
index a9108b0..d6d2bf8 100644
--- a/tests/unit/computations/test_wgcna.py
+++ b/tests/unit/computations/test_wgcna.py
@@ -5,7 +5,7 @@ from unittest import mock
import pytest
from gn3.computations.wgcna import dump_wgcna_data
-from gn3.computations.wgcna import compose_wgcna_cmd
+from gn3.computations.wgcna import compose_rscript_cmd
from gn3.computations.wgcna import call_wgcna_script
@@ -15,7 +15,7 @@ class TestWgcna(TestCase):
@pytest.mark.unit_test
@mock.patch("gn3.computations.wgcna.process_image")
@mock.patch("gn3.computations.wgcna.run_cmd")
- @mock.patch("gn3.computations.wgcna.compose_wgcna_cmd")
+ @mock.patch("gn3.computations.wgcna.compose_rscript_cmd")
@mock.patch("gn3.computations.wgcna.dump_wgcna_data")
def test_call_wgcna_script(self,
mock_dumping_data,
@@ -100,7 +100,7 @@ class TestWgcna(TestCase):
@pytest.mark.unit_test
@mock.patch("gn3.computations.wgcna.run_cmd")
- @mock.patch("gn3.computations.wgcna.compose_wgcna_cmd")
+ @mock.patch("gn3.computations.wgcna.compose_rscript_cmd")
@mock.patch("gn3.computations.wgcna.dump_wgcna_data")
def test_call_wgcna_script_fails(self, mock_dumping_data, mock_compose_wgcna, mock_run_cmd):
"""test for calling wgcna script\
@@ -122,9 +122,9 @@ class TestWgcna(TestCase):
"input_file.R", ""), expected_error)
@pytest.mark.unit_test
- def test_compose_wgcna_cmd(self):
+ def test_compose_rscript_cmd(self):
"""test for composing wgcna cmd"""
- wgcna_cmd = compose_wgcna_cmd(
+ wgcna_cmd = compose_rscript_cmd(
"wgcna.r", "/tmp/wgcna.json")
self.assertEqual(
wgcna_cmd, "Rscript ./scripts/wgcna.r /tmp/wgcna.json")