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