Allow exploration of the functional test environment from the...

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.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34794 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 326ebc00
......@@ -39,6 +39,16 @@ from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
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 @@ class TestZelenium(ERP5TypeTestCase):
)
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment