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

LiveTest: remove unused code

parent 27d44fa4
......@@ -44,25 +44,13 @@ import transaction
from zLOG import LOG, DEBUG, INFO
def profile_if_environ(environment_var_name):
if int(os.environ.get(environment_var_name, 0)):
def decorator(self, method):
def decorated():
self.runcall(method)
decorated.__name__ = method.__name__
decorated.__doc__ = method.__doc__
return decorated
return decorator
else:
# No profiling, return identity decorator
return lambda self, method: method
# Disable patching of activity tool,
# Tic doesn't need help as TimserService is running
# Tic doesn't need help as TimerService is running
from Products.ERP5Type.tests import ProcessingNodeTestCase as\
ProcessingNodeTestCaseModule
ProcessingNodeTestCaseModule.patchActivityTool = lambda: None
class ERP5TypeLiveTestCase(ERP5TypeTestCaseMixin):
"""ERP5TypeLiveTestCase is the default class for *all* tests
in ERP5. It is designed with the idea in mind that tests should
......
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