aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-12 08:54:37 -0500
committerFrederick Muriuki Muriithi2024-09-12 08:54:37 -0500
commite5fb91296bb91e61b9822cd12e04da24a0e99060 (patch)
tree40555f84d82b97324130458c578ccf37bbfbdbd4 /tests/unit
parenta23eb674191572867d1161b2b43285e060781062 (diff)
downloadgenenetwork3-e5fb91296bb91e61b9822cd12e04da24a0e99060.tar.gz
Fix failing tests after merging in Pjotr's pull request.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/computations/test_gemma.py4
-rw-r--r--tests/unit/computations/test_wgcna.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/computations/test_gemma.py b/tests/unit/computations/test_gemma.py
index 137c95c..6e1d097 100644
--- a/tests/unit/computations/test_gemma.py
+++ b/tests/unit/computations/test_gemma.py
@@ -19,9 +19,9 @@ class TestGemma(unittest.TestCase):
_file = generate_pheno_txt_file(tmpdir="/tmp",
trait_filename="phenotype.txt",
values=["x", "x", "BXD07 438.700"])
- self.assertEqual(_file, ("/tmp/gn2/phenotype_"
+ self.assertEqual(_file, ("/tmp/gn3/phenotype_"
"P7y6QWnwBPedSZdL0+m/GQ.txt"))
- open_mock.assert_called_with(("/tmp/gn2/phenotype_"
+ open_mock.assert_called_with(("/tmp/gn3/phenotype_"
"P7y6QWnwBPedSZdL0+m/GQ.txt"), "w", encoding="utf-8")
open_mock.return_value.write.assert_has_calls([
mock.call("NA\n"),
diff --git a/tests/unit/computations/test_wgcna.py b/tests/unit/computations/test_wgcna.py
index a9108b0..0bf97ec 100644
--- a/tests/unit/computations/test_wgcna.py
+++ b/tests/unit/computations/test_wgcna.py
@@ -127,7 +127,7 @@ class TestWgcna(TestCase):
wgcna_cmd = compose_wgcna_cmd(
"wgcna.r", "/tmp/wgcna.json")
self.assertEqual(
- wgcna_cmd, "Rscript ./scripts/wgcna.r /tmp/wgcna.json")
+ wgcna_cmd, "Rscript scripts/wgcna.r /tmp/wgcna.json")
@pytest.mark.unit_test
@mock.patch("gn3.computations.wgcna.TMPDIR", "/tmp")