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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
17cf1c5a
Commit
17cf1c5a
authored
Jul 12, 2024
by
Kazuhiko Shiozaki
Committed by
Arnaud Fontaine
Jul 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! bt5/test
parent
d2e12dfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5TypeInterfaces.py
...tem/portal_components/test.erp5.testERP5TypeInterfaces.py
+2
-3
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5TypeInterfaces.py
View file @
17cf1c5a
...
...
@@ -27,7 +27,6 @@
##############################################################################
from
zope.interface.verify
import
verifyClass
import
six
import
unittest
implements_tuple_list
=
[
...
...
@@ -60,7 +59,7 @@ def makeTestMethod(import_tuple, interface):
"""Common method which checks if documents implements interface"""
def
testMethod
(
self
):
Klass
=
getattr
(
__import__
(
import_tuple
[
0
],
globals
(),
locals
(),
[
import_tuple
[
0
]]
if
six
.
PY2
else
[
'erp5
'
]),
__import__
(
import_tuple
[
0
],
globals
(),
locals
(),
[
'
'
]),
import_tuple
[
1
])
import
Products.ERP5Type.interfaces
...
...
@@ -69,7 +68,7 @@ def makeTestMethod(import_tuple, interface):
except
AttributeError
:
InterfaceModuleName
=
'erp5.component.interface.%s'
%
interface
Interface
=
getattr
(
__import__
(
InterfaceModuleName
,
globals
(),
locals
(),
[
InterfaceModuleName
]
if
six
.
PY2
else
[
'erp5
'
]),
__import__
(
InterfaceModuleName
,
globals
(),
locals
(),
[
'
'
]),
interface
)
verifyClass
(
Interface
,
Klass
)
...
...
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