From 7dbb0e6d27cdb0923e94685cf44d244dd8a2e105 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Sat, 25 Sep 2021 18:33:12 +0300 Subject: minor fixes for unittests --- tests/integration/test_wgcna.py | 2 +- tests/unit/computations/test_wgcna.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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): -- cgit v1.2.3