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

Changed userfile to one that exists Re #21115

parent 2ea703a9
No related branches found
No related tags found
No related merge requests found
...@@ -52,10 +52,10 @@ class GuiCommonTest(unittest.TestCase): ...@@ -52,10 +52,10 @@ class GuiCommonTest(unittest.TestCase):
@mock.patch('sans.gui_logic.models.create_state.__create_row_state') @mock.patch('sans.gui_logic.models.create_state.__create_row_state')
def test_create_state_from_user_file_if_specified(self, create_row_state_mock): def test_create_state_from_user_file_if_specified(self, create_row_state_mock):
table_index_model = TableIndexModel(0, 'LOQ74044', '', '', '', '', '', '', '', '', '', '', '', table_index_model = TableIndexModel(0, 'LOQ74044', '', '', '', '', '', '', '', '', '', '', '',
user_file='MaskFile.txt') user_file='MaskLOQData.txt')
table_model = TableModel() table_model = TableModel()
table_model.add_table_entry(0, table_index_model) table_model.add_table_entry(0, table_index_model)
row_state_model = create_gui_state_from_userfile('MaskFile.txt') row_state_model = create_gui_state_from_userfile('MaskLOQData.txt')
row_gui_state_director = GuiStateDirector(table_model, row_state_model, SANSFacility.ISIS) row_gui_state_director = GuiStateDirector(table_model, row_state_model, SANSFacility.ISIS)
states = create_states(self.state_gui_model, table_model, SANSInstrument.LOQ, SANSFacility.ISIS) states = create_states(self.state_gui_model, table_model, SANSInstrument.LOQ, SANSFacility.ISIS)
......
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