Author: bugman Date: Tue Jul 12 19:06:22 2011 New Revision: 13566 URL: http://svn.gna.org/viewcvs/relax?rev=13566&view=rev Log: Updated the NOE GUI test for the recent changes to the auto NOE analysis page. Modified: branches/gui_testing/test_suite/gui_tests/noe.py Modified: branches/gui_testing/test_suite/gui_tests/noe.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/test_suite/gui_tests/noe.py?rev=13566&r1=13565&r2=13566&view=diff ============================================================================== --- branches/gui_testing/test_suite/gui_tests/noe.py (original) +++ branches/gui_testing/test_suite/gui_tests/noe.py Tue Jul 12 19:06:22 2011 @@ -42,7 +42,9 @@ # relax GUI imports. if dep_check.wx_module: from gui.relax_gui import Main -from gui.misc import str_to_gui +from gui.misc import int_to_gui, str_to_gui +from gui.user_functions import deselect, sequence +from gui.wizard import Wiz_window class Noe(GuiTestCase): @@ -89,12 +91,22 @@ # Change the results directory. page.field_results_dir.SetValue(str_to_gui(ds.tmpdir)) - # The sequence file. + # Load the sequence. + wizard = Wiz_window(size_x=900, size_y=700) + seq_read = sequence.Read_page(wizard, self.gui, self.interpreter) file = status.install_path + sep + 'test_suite' + sep + 'shared_data' + sep + 'Ap4Aase.seq' - page.field_sequence.SetValue(str_to_gui(file)) + seq_read.file.SetValue(str_to_gui(file)) + seq_read.mol_name_col.SetValue(int_to_gui(None)) + seq_read.res_name_col.SetValue(int_to_gui(2)) + seq_read.res_num_col.SetValue(int_to_gui(1)) + seq_read.spin_name_col.SetValue(int_to_gui(None)) + seq_read.spin_num_col.SetValue(int_to_gui(None)) + seq_read.on_execute() # Unresolved spins. - page.field_unresolved.SetValue(str_to_gui('3')) + deselect_spin = deselect.Spin_page(wizard, self.gui, self.interpreter) + deselect_spin.spin_id.SetValue(":3") + deselect_spin.on_execute() # The reference spectrum. file = status.install_path + sep + 'test_suite' + sep + 'shared_data' + sep + 'peak_lists' + sep + 'ref_ave.list'