mailr25186 - in /branches/frame_order_cleanup: ./ test_suite/gui_tests/relax_disp.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on August 21, 2014 - 18:43:
Author: bugman
Date: Thu Aug 21 18:43:00 2014
New Revision: 25186

URL: http://svn.gna.org/viewcvs/relax?rev=25186&view=rev
Log:
Merged revisions 25184 via svnmerge from 
svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk

........
  r25184 | tlinnet | 2014-08-21 18:07:04 +0200 (Thu, 21 Aug 2014) | 4 lines
  
  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:
    branches/frame_order_cleanup/   (props changed)
    branches/frame_order_cleanup/test_suite/gui_tests/relax_disp.py

Propchange: branches/frame_order_cleanup/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Thu Aug 21 18:43:00 2014
@@ -1 +1 @@
-/trunk:1-25182
+/trunk:1-25182,25184

Modified: branches/frame_order_cleanup/test_suite/gui_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/test_suite/gui_tests/relax_disp.py?rev=25186&r1=25185&r2=25186&view=diff
==============================================================================
--- branches/frame_order_cleanup/test_suite/gui_tests/relax_disp.py     
(original)
+++ branches/frame_order_cleanup/test_suite/gui_tests/relax_disp.py     Thu 
Aug 21 18:43:00 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):




Related Messages


Powered by MHonArc, Updated Thu Aug 21 19:00:02 2014