That nicely shows off the bug! Cheers,
Edward On 21 August 2014 18:07, <tlin...@nmr-relax.com> wrote: > Author: tlinnet > Date: Thu Aug 21 18:07:04 2014 > New Revision: 25184 > > URL: http://svn.gna.org/viewcvs/relax?rev=25184&view=rev > Log: > Implemted GUI test: --gui-tests Relax_disp.test_bug_22501_close_all_analyse > > To catch bug: > bug #22501(https://gna.org/bugs/index.php?22501), 'Close all analyses' raises > error. > > 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=25184&r1=25183&r2=25184&view=diff > ============================================================================== > --- trunk/test_suite/gui_tests/relax_disp.py (original) > +++ trunk/test_suite/gui_tests/relax_disp.py Thu Aug 21 18:07:04 2014 > @@ -205,6 +205,29 @@ > > # Finally close the wizard to allow subsequent tests to be able to > operate cleanly. > wizard.Close() > + > + > + def test_bug_22501_close_all_analyses(self): > + """Test catching U{bug > #22501<https://gna.org/bugs/index.php?22501>}, 'Close all analyses' raises > error.""" > + > + # Simulate the new analysis wizard, selecting the fixed time CPMG > experiment. > + self.app.gui.analysis.menu_new(None) > + page = self.app.gui.analysis.new_wizard.wizard.get_page(0) > + page.select_disp(None) > + self.app.gui.analysis.new_wizard.wizard._go_next(None) > + self.app.gui.analysis.new_wizard.wizard._go_next(None) > + > + # Get the data. > + analysis_type, analysis_name, pipe_name, pipe_bundle, uf_exec = > self.app.gui.analysis.new_wizard.get_data() > + > + # Set up the analysis. > + self.app.gui.analysis.new_analysis(analysis_type=analysis_type, > analysis_name=analysis_name, pipe_name=pipe_name, pipe_bundle=pipe_bundle, > uf_exec=uf_exec) > + > + # Alias the analysis. > + analysis = self.app.gui.analysis.get_page_from_name("Relaxation > dispersion") > + > + # Closure. > + self.app.gui.analysis.delete_analysis(0) > > > def test_hansen_trunc_data(self): > > > _______________________________________________ > relax (http://www.nmr-relax.com) > > This is the relax-commits mailing list > relax-comm...@gna.org > > To unsubscribe from this list, get a password > reminder, or change your subscription options, > visit the list information page at > https://mail.gna.org/listinfo/relax-commits _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-devel mailing list relax-devel@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-devel