Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
43435f58
Commit
43435f58
authored
Oct 12, 2016
by
hardikj
Committed by
Cédric Le Ninivin
Oct 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Type: Do not reload SecurityTestCase while loading tests
/reviewed-on
nexedi/erp5!180
parent
8d00b49a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
+4
-3
No files found.
product/ERP5Type/tests/ERP5TypeLiveTestCase.py
View file @
43435f58
...
...
@@ -37,6 +37,7 @@ from Testing import ZopeTestCase
from
Testing.ZopeTestCase
import
PortalTestCase
,
user_name
from
Products.CMFCore.utils
import
getToolByName
from
Products.ERP5Type.tests.ProcessingNodeTestCase
import
ProcessingNodeTestCase
from
Products.ERP5Type.tests.SecurityTestCase
import
SecurityTestCase
from
Products.ERP5Type.Globals
import
get_request
from
Products.ERP5Type.tests.ERP5TypeTestCase
import
\
ERP5TypeTestCaseMixin
,
ERP5TypeTestCase
...
...
@@ -223,9 +224,9 @@ class ERP5TypeTestReLoader(ERP5TypeTestLoader):
def
loadTestsFromTestCase
(
self
,
testCaseClass
):
testModule
=
sys
.
modules
[
testCaseClass
.
__module__
]
# Do not reload ERP5TypeTestCase
because we patch it nor ZODB Test
# Component as it is reset upon modification anyway
if
(
testCaseClass
is
not
ERP5TypeTestCase
and
# Do not reload ERP5TypeTestCase
and SecurityTestCase because we patch
#
it nor ZODB Test
Component as it is reset upon modification anyway
if
(
testCaseClass
not
in
(
ERP5TypeTestCase
,
SecurityTestCase
)
and
not
isinstance
(
getattr
(
testModule
,
'__loader__'
,
None
),
ComponentDynamicPackage
)):
testModule
=
reload
(
testModule
)
...
...
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