[Erp5-report] r34794 leonardo - /erp5/trunk/products/ERP5Type/tests/prepareFunctionalTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 27 01:25:13 CEST 2010


Author: leonardo
Date: Tue Apr 27 01:25:11 2010
New Revision: 34794

URL: http://svn.erp5.org?rev=34794&view=rev
Log:
Allow exploration of the functional test environment from the prepareFunctionalTest.py script itself

Bonus: Allows manual run of the functional tests on the same sterile environment as is used by the functional test run itself.

Modified:
    erp5/trunk/products/ERP5Type/tests/prepareFunctionalTest.py

Modified: erp5/trunk/products/ERP5Type/tests/prepareFunctionalTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/prepareFunctionalTest.py?rev=34794&r1=34793&r2=34794&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/prepareFunctionalTest.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/prepareFunctionalTest.py [utf8] Tue Apr 27 01:25:11 2010
@@ -39,6 +39,16 @@
 
 os.environ['erp5_tests_portal_id'] = 'erp5_portal'
 
+MSG = '''
+This "test file" is intended to be used with --save option, for use with
+runFunctionalTest.py.
+
+It will now enter an IPython prompt so you can explore the environment either
+through IPython or through the "ZServer port" reported above.
+
+Once you exit the IPython prompt, this "test" will finish.
+'''.strip()
+
 class TestZelenium(ERP5TypeTestCase):
     def getBusinessTemplateList(self):
         """
@@ -61,8 +71,9 @@
                 )
 
     def testInformation(self):
-        self.assert_(False, 'This script is intended to be used with --save option.')
-
+        print MSG
+        import IPython.Shell
+        IPython.Shell.IPShellEmbed('')(local_ns=locals(), global_ns=globals())
 
 def test_suite():
     suite = unittest.TestSuite()




More information about the Erp5-report mailing list