Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
erp5
Commits
1b9bb4cd
Commit
1b9bb4cd
authored
Jun 12, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LiveTest: remove unused code
parent
27d44fa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
+2
-14
No files found.
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
View file @
1b9bb4cd
...
...
@@ -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 Tim
s
erService 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment