From bd96051ed8bea6d4551867b4174f403bb8822633 Mon Sep 17 00:00:00 2001 From: Luke Fiddy Date: Wed, 15 Jan 2025 16:42:31 +0000 Subject: [PATCH] change name of function --- tests/script_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/script_test.py b/tests/script_test.py index eb5232f..d03c3c1 100644 --- a/tests/script_test.py +++ b/tests/script_test.py @@ -1,7 +1,7 @@ import numpy as np import pytest -from bimorph_mirror_analysis.maths import find_voltages +from bimorph_mirror_analysis.maths import find_voltage_corrections @pytest.mark.parametrize( @@ -18,11 +18,11 @@ def test_find_voltages_correct_output( data, expected_output = actuator_data v = -100 np.testing.assert_almost_equal( - find_voltages(data, v, baseline_voltage_scan=-1), expected_output + find_voltage_corrections(data, v, baseline_voltage_scan=-1), expected_output ) -def test_find_voltages_index_error_throw(): +def test_find_voltage_corrections_index_error_throw(): data = np.loadtxt("tests/data/8_actuator_data.txt", delimiter=",") with pytest.raises(IndexError): - find_voltages(data, -100, baseline_voltage_scan=12) + find_voltage_corrections(data, -100, baseline_voltage_scan=12)