mailr4343 - /1.3/test_suite/system_tests/__init__.py


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

Header


Content

Posted by edward on January 05, 2008 - 17:50:
Author: bugman
Date: Sat Jan  5 17:50:15 2008
New Revision: 4343

URL: http://svn.gna.org/viewcvs/relax?rev=4343&view=rev
Log:
Added the ability to run the new system/functional tests based on the 
unittest framework.


Modified:
    1.3/test_suite/system_tests/__init__.py

Modified: 1.3/test_suite/system_tests/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/__init__.py?rev=4343&r1=4342&r2=4343&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/__init__.py (original)
+++ 1.3/test_suite/system_tests/__init__.py Sat Jan  5 17:50:15 2008
@@ -20,6 +20,13 @@
 #                                                                            
 #
 
###############################################################################
 
+# Python module imports.
+from unittest import TestLoader, TextTestRunner
+
+# relax module imports.
+from test_pipe_create import Test_pipe_create
+from test_suite.relax_test_runner import RelaxTestRunner
+
 
 __all__ = ['angles',
            'diffusion_tensor',
@@ -28,6 +35,7 @@
            'main',
            'model_free',
            'model_selection',
+           'test_pipe_create',
            'relax_fit',
            'run_create',
            'sequence']
@@ -52,3 +60,9 @@
         @param runner:  The unit test runner which defaults to 
TextTestRunner.
         @type runner:   instance
         """
+
+        # Create the test suite.
+        suite = TestLoader().loadTestsFromTestCase(Test_pipe_create)
+
+        # Run the test suite.
+        TextTestRunner().run(suite)




Related Messages


Powered by MHonArc, Updated Sat Jan 05 18:00:21 2008