Author: tlinnet Date: Fri Dec 6 07:24:15 2013 New Revision: 21802 URL: http://svn.gna.org/viewcvs/relax?rev=21802&view=rev Log: Updated the gui-test to check for first ID in list. Fix for bug #21076, (https://gna.org/bugs/?21076) - When loading a multi-spectra NMRPipe seriesTab file through the GUI, several Error messages occur. Modified: trunk/test_suite/gui_tests/relax_disp.py Modified: trunk/test_suite/gui_tests/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/relax_disp.py?rev=21802&r1=21801&r2=21802&view=diff ============================================================================== --- trunk/test_suite/gui_tests/relax_disp.py (original) +++ trunk/test_suite/gui_tests/relax_disp.py Fri Dec 6 07:24:15 2013 @@ -178,17 +178,24 @@ analysis.peak_wizard_launch(None) wizard = analysis.peak_wizard - # The spectrum. + # The spectrum, use Keyword auto. page = wizard.get_page(wizard.page_indices['read']) page.uf_args['file'].SetValue(str_to_gui("%sfolded_sparky_corr_final_max_standard_trunc.ser" % data_path)) page.uf_args['spectrum_id'].SetValue(['auto']) wizard._go_next(None) - # The error type. + # The error type window. page = wizard.get_page(wizard.page_indices['err_type']) page.selection = 'rmsd' wizard._go_next(None) + # Get ID from RMSD window. + page = wizard.get_page(wizard.page_indices['rmsd']) + # Flush all wx events (to allow the spectrum list GUI element to populate all its rows). + wx.Yield() + # Get the ID + cur_id = page.uf_args['spectrum_id'].GetValue() + self.assertEqual(cur_id, 'Z_A0') def test_hansen_trunc_data(self): """Test the GUI analysis with Flemming Hansen's CPMG data truncated to residues 70 and 71."""