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) _______________________________________________ relax (http://nmr-relax.com) This is the relax-commits mailing list relax-commits@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