aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-07-05 15:50:21 +0300
committerFrederick Muriuki Muriithi2023-07-05 15:50:21 +0300
commitc065b9d3d42097310c7884bea1d3ce42ccd266a1 (patch)
treeb75f80697f3c730e17172f69b9b032038f711893 /tests/unit
parent71525e64d00eda329f8c9a87c300b98526113679 (diff)
downloadgenenetwork3-c065b9d3d42097310c7884bea1d3ce42ccd266a1.tar.gz
Update test: create throw-away variable
* Commit `b529c700` changes the return value to a tuple of values rather than a single string value. Handle that in the test.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/computations/test_rust_correlation.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/unit/computations/test_rust_correlation.py b/tests/unit/computations/test_rust_correlation.py
index 67f576f..4763774 100644
--- a/tests/unit/computations/test_rust_correlation.py
+++ b/tests/unit/computations/test_rust_correlation.py
@@ -37,11 +37,12 @@ def test_generate_input():
def test_json_file():
"""test for generating json files """
- tmp_file = generate_json_file(tmp_dir="/tmp/correlation",
- tmp_file="/data.txt",
- method="pearson",
- x_vals="12.1,11.3,16.5,7.5,3.2",
- delimiter=",")
+ tmp_file, _tmp_json_file = generate_json_file(
+ tmp_dir="/tmp/correlation",
+ tmp_file="/data.txt",
+ method="pearson",
+ x_vals="12.1,11.3,16.5,7.5,3.2",
+ delimiter=",")
with open(tmp_file, "r+", encoding="utf-8") as file_reader:
results = json.load(file_reader)