Commit 21deb952 authored by Alain Takoudjou's avatar Alain Takoudjou

fixup: is_livetest

parent b79d59db
...@@ -106,7 +106,9 @@ class testSlapOSMixin(ERP5TypeTestCase): ...@@ -106,7 +106,9 @@ class testSlapOSMixin(ERP5TypeTestCase):
self.assertTrue(self.portal.portal_alarms.isSubscribed()) self.assertTrue(self.portal.portal_alarms.isSubscribed())
def isLiveTest(self): def isLiveTest(self):
return 'ERP5TypeLiveTestCase' in [q.__name__ for q in self.__class__.mro()] #return 'ERP5TypeLiveTestCase' in [q.__name__ for q in self.__class__.mro()]
# XXX - What is the better way to no if we are in live test mode ?
return not os.environ.has_key('TEST_CA_PATH')
def _setUpDummyMailHost(self): def _setUpDummyMailHost(self):
"""Do not play with NON persistent replacement of MailHost""" """Do not play with NON persistent replacement of MailHost"""
......
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