From e5fb91296bb91e61b9822cd12e04da24a0e99060 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 12 Sep 2024 08:54:37 -0500 Subject: Fix failing tests after merging in Pjotr's pull request. --- tests/unit/computations/test_gemma.py | 4 ++-- tests/unit/computations/test_wgcna.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit') 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") -- cgit v1.2.3