From c065b9d3d42097310c7884bea1d3ce42ccd266a1 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 5 Jul 2023 15:50:21 +0300 Subject: 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. --- tests/unit/computations/test_rust_correlation.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'tests/unit/computations') 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) -- cgit v1.2.3