From 1da5ec438b0ab9446c0a8c2cccf3fc0e7dcb9395 Mon Sep 17 00:00:00 2001 From: GuiMacielPereira Date: Tue, 7 Jan 2025 15:14:57 +0000 Subject: [PATCH] Fix failing unit tests --- tests/unit/analysis/test_analysis_reduction.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/unit/analysis/test_analysis_reduction.py b/tests/unit/analysis/test_analysis_reduction.py index 43129e8..28b1101 100644 --- a/tests/unit/analysis/test_analysis_reduction.py +++ b/tests/unit/analysis/test_analysis_reduction.py @@ -92,6 +92,7 @@ def test_fit_neutron_compton_profiles_number_of_calls(self): alg._dataY = np.array([[1, 1], [2, 2], [3, 3]]) alg._fit_parameters = np.ones(3) # To avoid assertion error alg._fit_neutron_compton_profiles_to_row = MagicMock(return_value=None) + alg._table_fit_results = MagicMock(return_value=None) alg._fit_neutron_compton_profiles() self.assertEqual(alg._fit_neutron_compton_profiles_to_row.call_count, 3) @@ -366,10 +367,10 @@ def test_set_means_and_std(self): def pick_column(arg): table = { - '1.0 width': [5.6, 5.1, 0, 2, 5.4], - '12.0 width': [2.1, 1, 0, 2.3, 1.9], - '1.0 intensity': [7.8, 7.6, 0, 5, 7.3], - '12.0 intensity': [3.1, 2, 0, 3.2, 3.1], + '1.0 w': [5.6, 5.1, 0, 2, 5.4], + '12.0 w': [2.1, 1, 0, 2.3, 1.9], + '1.0 i': [7.8, 7.6, 0, 5, 7.3], + '12.0 i': [3.1, 2, 0, 3.2, 3.1], } return table[arg]