Commit 1e0ec429 authored by Jérome Perrin's avatar Jérome Perrin

Overload getPortalName to use the same portal for all tests in this file



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12619 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3afaec6e
......@@ -66,7 +66,16 @@ class InventoryAPITestCase(ERP5TypeTestCase):
def getTitle(self):
"""Title of the test."""
return self.__class__.__doc__
return 'Inventory API'
def getPortalName(self):
"""ID of the portal. """
forced_portal_id = os.environ.get('erp5_tests_portal_id')
if forced_portal_id:
return str(forced_portal_id)
# all test methods here cleanup correctly, so we can use the same portal
# for all those tests.
return 'inventory_api_test'
def afterSetUp(self):
"""set up """
......
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