aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-11-29 11:01:45 +0300
committerFrederick Muriuki Muriithi2022-11-29 11:01:45 +0300
commit6e03409cf66f2a390fdf1485756f5fad22cdbec2 (patch)
tree50e4aee8d48c2ccc1e9f7f562f13eeda6a0f8fe4 /tests
parent361639fb97ce68b36cf9b4f134712bd3fa07dbce (diff)
downloadgenenetwork3-6e03409cf66f2a390fdf1485756f5fad22cdbec2.tar.gz
tests: fix failing test
* tests/unit/computations/test_rust_correlation.py: The underlying code changed and the test needed to be updated to test the correct thing.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/computations/test_rust_correlation.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/computations/test_rust_correlation.py b/tests/unit/computations/test_rust_correlation.py
index 9a17004..67f576f 100644
--- a/tests/unit/computations/test_rust_correlation.py
+++ b/tests/unit/computations/test_rust_correlation.py
@@ -15,11 +15,12 @@ def test_generate_input():
"""test generating text files"""
test_dataset = [
- "14_at,12.1,14.1,None",
- "15_at,12.2,14.1,None",
- "17_at,12.1,14.1,11.4"
+ ["14_at",12.1,14.1,None],
+ ["15_at",12.2,14.1,None],
+ ["17_at",12.1,14.1,11.4]
]
+ expected = ["14_at,12.1,14.1,", "15_at,12.2,14.1,", "17_at,12.1,14.1,11.4"]
(_tmp_dir, tmp_file) = generate_input_files(test_dataset,
output_dir="/tmp")
@@ -29,7 +30,7 @@ def test_generate_input():
os.remove(tmp_file)
- assert test_results == test_dataset
+ assert test_results == expected
# @pytest.mark.unit_test