mailr17475 - in /trunk/test_suite/gui_tests: __init__.py bruker.py


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

Header


Content

Posted by edward on September 07, 2012 - 08:59:
Author: bugman
Date: Fri Sep  7 08:59:17 2012
New Revision: 17475

URL: http://svn.gna.org/viewcvs/relax?rev=17475&view=rev
Log:
Set up the Bruker Dynamics Center system tests as GUI tests.

This is in preparation for catching bug #20152 (https://gna.org/bugs/?20152).


Added:
    trunk/test_suite/gui_tests/bruker.py
Modified:
    trunk/test_suite/gui_tests/__init__.py

Modified: trunk/test_suite/gui_tests/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/__init__.py?rev=17475&r1=17474&r2=17475&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/__init__.py (original)
+++ trunk/test_suite/gui_tests/__init__.py Fri Sep  7 08:59:17 2012
@@ -32,6 +32,7 @@
 
 # relax GUI test module imports.
 from bmrb import Bmrb
+from bruker import Bruker
 from consistency_tests import Ct
 from dead_uf_pages import Dead_uf_pages
 from frame_order import Frame_order
@@ -111,6 +112,7 @@
         # All tests.
         if not tests:
             suite_array.append(TestLoader().loadTestsFromTestCase(Bmrb))
+            suite_array.append(TestLoader().loadTestsFromTestCase(Bruker))
             suite_array.append(TestLoader().loadTestsFromTestCase(Ct))
             
suite_array.append(TestLoader().loadTestsFromTestCase(Dead_uf_pages))
             
suite_array.append(TestLoader().loadTestsFromTestCase(Frame_order))

Added: trunk/test_suite/gui_tests/bruker.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/bruker.py?rev=17475&view=auto
==============================================================================
--- trunk/test_suite/gui_tests/bruker.py (added)
+++ trunk/test_suite/gui_tests/bruker.py Fri Sep  7 08:59:17 2012
@@ -1,0 +1,49 @@
+###############################################################################
+#                                                                            
 #
+# Copyright (C) 2012 Edward d'Auvergne                                       
 #
+#                                                                            
 #
+# This file is part of the program relax (http://www.nmr-relax.com).         
 #
+#                                                                            
 #
+# This program is free software: you can redistribute it and/or modify       
 #
+# it under the terms of the GNU General Public License as published by       
 #
+# the Free Software Foundation, either version 3 of the License, or          
 #
+# (at your option) any later version.                                        
 #
+#                                                                            
 #
+# This program is distributed in the hope that it will be useful,            
 #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of             
 #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              
 #
+# GNU General Public License for more details.                               
 #
+#                                                                            
 #
+# You should have received a copy of the GNU General Public License          
 #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.      
 #
+#                                                                            
 #
+###############################################################################
+
+# Module docstring.
+"""GUI tests for the Bruker Dynamics Center support."""
+
+
+# relax module imports.
+import dep_check
+from test_suite.gui_tests.base_classes import GuiTestCase
+from test_suite import system_tests
+
+
+class Bruker(GuiTestCase, system_tests.bruker.Bruker):
+    """Class for testing the Bruker Dynamics Center support in the GUI."""
+
+    def __init__(self, methodName=None):
+        """Set up the test case class for the system tests."""
+
+        # Force execution of the GuiTestCase __init__ method.
+        GuiTestCase.__init__(self, methodName)
+
+
+    def setUp(self):
+        """Set up for all the GUI tests."""
+
+        # Run the GuiTestCase setup.
+        GuiTestCase.setUp(self)
+
+        # Create a data pipe.
+        self.interpreter.pipe.create('mf', 'mf')




Related Messages


Powered by MHonArc, Updated Fri Sep 07 09:40:02 2012