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
141
Merge Requests
141
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
dcfba3ff
Commit
dcfba3ff
authored
Apr 21, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_result: pylint py3
parent
182a10fa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.CloudPerformanceUnitTestDistributor.py
...ents/document.erp5.CloudPerformanceUnitTestDistributor.py
+0
-1
bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.TestSuite.py
...TemplateItem/portal_components/document.erp5.TestSuite.py
+4
-4
bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.TestSuiteRepository.py
...em/portal_components/document.erp5.TestSuiteRepository.py
+4
-4
bt5/erp5_test_result/ExtensionTemplateItem/portal_components/extension.erp5.TestResults.py
...plateItem/portal_components/extension.erp5.TestResults.py
+1
-1
No files found.
bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.CloudPerformanceUnitTestDistributor.py
View file @
dcfba3ff
...
...
@@ -42,7 +42,6 @@ class CloudPerformanceUnitTestDistributor(ERP5ProjectUnitTestDistributor):
all test nodes runs all test suites, this is not a problem to keep
configuration
"""
pass
security
.
declarePublic
(
"optimizeConfiguration"
)
def
optimizeConfiguration
(
self
):
...
...
bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.TestSuite.py
View file @
dcfba3ff
...
...
@@ -68,15 +68,15 @@ class TestSuite(XMLObject, PeriodicityMixin):
# setting of some properties that were defined with type "lines" instead of "string".
# This was making the property existence constraint not working properly.
def
_fixPropertyConsistency
(
self
):
self
=
aq_base
(
self
)
aq_base_
self
=
aq_base
(
self
)
for
property_name
in
(
'additional_bt5_repository_id'
,
'test_suite'
):
property_value
=
getattr
(
self
,
property_name
,
None
)
property_value
=
getattr
(
aq_base_
self
,
property_name
,
None
)
if
property_value
is
not
None
and
isinstance
(
property_value
,
tuple
):
if
len
(
property_value
)
>
0
:
property_value
=
property_value
[
0
]
setattr
(
self
,
property_name
,
property_value
)
setattr
(
aq_base_
self
,
property_name
,
property_value
)
else
:
delattr
(
self
,
property_name
)
delattr
(
aq_base_
self
,
property_name
)
def
getAdditionalBt5RepositoryId
(
self
,
*
args
,
**
kw
):
self
.
_fixPropertyConsistency
()
...
...
bt5/erp5_test_result/DocumentTemplateItem/portal_components/document.erp5.TestSuiteRepository.py
View file @
dcfba3ff
...
...
@@ -13,15 +13,15 @@ class TestSuiteRepository(XMLObject):
# setting of some properties that were defined with type "lines" instead of "string".
# This was making the property existence constraint not working properly.
def
_fixPropertyConsistency
(
self
):
self
=
aq_base
(
self
)
aq_base_
self
=
aq_base
(
self
)
for
property_name
in
(
'branch'
,
'buildout_section_id'
,
'git_url'
,
'profile_path'
):
property_value
=
getattr
(
self
,
property_name
,
None
)
property_value
=
getattr
(
aq_base_
self
,
property_name
,
None
)
if
property_value
is
not
None
and
isinstance
(
property_value
,
tuple
):
if
len
(
property_value
)
>
0
:
property_value
=
property_value
[
0
]
setattr
(
self
,
property_name
,
property_value
)
setattr
(
aq_base_
self
,
property_name
,
property_value
)
else
:
delattr
(
self
,
property_name
)
delattr
(
aq_base_
self
,
property_name
)
def
getBranch
(
self
,
*
args
,
**
kw
):
self
.
_fixPropertyConsistency
()
...
...
bt5/erp5_test_result/ExtensionTemplateItem/portal_components/extension.erp5.TestResults.py
View file @
dcfba3ff
...
...
@@ -301,7 +301,7 @@ def TestResult_sendEmailNotification(self, mail_to=None, mail_from=None,
"
%
s
lines
" % max_line_count)
traceback_attachment[max_line_count:] = '', '', '(truncated) ...'
content = '
\
n
'.join(traceback_attachment)
if
isinstance(content, unicode
):
if
not isinstance(content, bytes
):
content = content.encode('utf8')
attachment_list.append(dict(name='traceback.txt',
mime_type='text/plain',
...
...
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