Skip to content
Snippets Groups Projects
Commit c5bb553f authored by Matthew Andrew's avatar Matthew Andrew
Browse files

Updated failing unit test Re #22055

The FunctionBrowser no longer emits the parameterChanged signal if the change is made internally from the code. The test here is updated to reflect that.
parent 18bb3183
No related branches found
No related tags found
No related merge requests found
...@@ -525,8 +525,7 @@ class FittingTabPresenterTest(unittest.TestCase): ...@@ -525,8 +525,7 @@ class FittingTabPresenterTest(unittest.TestCase):
self.view.function_browser.setParameter('A', 1.5) self.view.function_browser.setParameter('A', 1.5)
self.assertEqual([str(item) for item in self.presenter._fit_function], self.assertEqual(str(self.view.fit_object), 'name=GausOsc,A=1.5,Sigma=0.2,Frequency=0.1,Phi=0')
['name=GausOsc,A=1.5,Sigma=0.2,Frequency=0.1,Phi=0'] + ['name=GausOsc,A=0.2,Sigma=0.2,Frequency=0.1,Phi=0'] * 2)
def test_handle_display_workspace_changed_updates_displayed_single_function(self): def test_handle_display_workspace_changed_updates_displayed_single_function(self):
self.presenter.selected_data = ['MUSR22725; Group; top; Asymmetry', 'MUSR22725; Group; bottom; Asymmetry', self.presenter.selected_data = ['MUSR22725; Group; top; Asymmetry', 'MUSR22725; Group; bottom; Asymmetry',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment