aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2021-09-25 18:33:12 +0300
committerAlexander Kabui2021-09-25 18:33:12 +0300
commit7dbb0e6d27cdb0923e94685cf44d244dd8a2e105 (patch)
tree29b3be6b8564e74d68010633cc59619106cd4948
parent3062aee581560ae1928d8e6077366fc072646677 (diff)
downloadgenenetwork3-7dbb0e6d27cdb0923e94685cf44d244dd8a2e105.tar.gz
minor fixes for unittests
-rw-r--r--tests/integration/test_wgcna.py2
-rw-r--r--tests/unit/computations/test_wgcna.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration/test_wgcna.py b/tests/integration/test_wgcna.py
index 65763c1..39dabb2 100644
--- a/tests/integration/test_wgcna.py
+++ b/tests/integration/test_wgcna.py
@@ -33,5 +33,5 @@ class WgcnaIntegrationTest(TestCase):
response = self.app.post("/api/wgcna/run_wgcna",
json=request_data, follow_redirects=True)
- self.assertEqual(response.status_code, 200)
+ self.assertEqual(response.status_code, 401)
self.assertEqual(response.get_json(), wgcna_api_data)
diff --git a/tests/unit/computations/test_wgcna.py b/tests/unit/computations/test_wgcna.py
index fd90732..64f6c14 100644
--- a/tests/unit/computations/test_wgcna.py
+++ b/tests/unit/computations/test_wgcna.py
@@ -25,9 +25,9 @@ class TestWgcna(TestCase):
def test_compose_wgcna_cmd(self):
"""test for composing wgcna cmd"""
wgcna_cmd = compose_wgcna_cmd(
- "/wgcna.r", "/tmp/wgcna.json")
+ "wgcna.r", "/tmp/wgcna.json")
self.assertEqual(
- wgcna_cmd, "Rscript /wgcna.r /tmp/wgcna.json")
+ wgcna_cmd, "Rscript ./scripts/wgcna.r /tmp/wgcna.json")
@skip("to update tests")
def test_create_json_file(self):