From 39631e78cf6594e6937a14c30c3a6cbd0bf3b816 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sat, 28 May 2022 17:50:15 +0300 Subject: init test correlation rust module --- tests/unit/computations/test_rust_correlation.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/unit/computations/test_rust_correlation.py (limited to 'tests/unit/computations') diff --git a/tests/unit/computations/test_rust_correlation.py b/tests/unit/computations/test_rust_correlation.py new file mode 100644 index 0000000..1398645 --- /dev/null +++ b/tests/unit/computations/test_rust_correlation.py @@ -0,0 +1,24 @@ +import pytest + +from gn3.computations.rust_correlation import CORRELATION_COMMAND +from gn3.computations.rust_correlation import run_correlation + + +@pytest.mark.unit_test + +def test_equality(): + """initial test for sum """ + + assert 4 == 4 + + + +@pytest.mark.unit_test + +def test_run_correlation(): + """test calling rusts' correlation """ + + + results = run_correlation("./tests/data/sample_json_file.json") + + assert results == "hello" -- cgit v1.2.3