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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
8846bfa2
Commit
8846bfa2
authored
Apr 14, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui_test_core: address pylint warnings and enable coding style test
parent
182f833d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
11 deletions
+17
-11
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Base_setLanguageWithoutRedirect.py
...kins/erp5_ui_test_core/Base_setLanguageWithoutRedirect.py
+3
-0
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_addTest.py
...plateItem/portal_skins/erp5_ui_test_core/Zuite_addTest.py
+7
-1
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_runSeleniumTest.py
...m/portal_skins/erp5_ui_test_core/Zuite_runSeleniumTest.py
+7
-7
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_uploadScreenshot.py
.../portal_skins/erp5_ui_test_core/Zuite_uploadScreenshot.py
+0
-2
bt5/erp5_ui_test_core/bt/skip_coding_style_test
bt5/erp5_ui_test_core/bt/skip_coding_style_test
+0
-1
No files found.
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Base_setLanguageWithoutRedirect.py
View file @
8846bfa2
# pylint:disable=redefined-builtin
# select_language is a builtin because of a Localizer.itools.i18n.accept patch
context
.
Base_doLanguage
(
select_language
)
# Don't redirect. Base_doLanguage tries to redirect to the same page
# and then selenium main page is loaded again in the bottom frame of
...
...
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_addTest.py
View file @
8846bfa2
...
...
@@ -7,7 +7,13 @@ if REQUEST:
assert
context
.
getPortalType
()
==
"Test Tool"
,
"bad context"
if
test_id
is
None
or
test_id
==
''
:
test_id
=
''
.
join
(
list
(
filter
(
lambda
a
:
a
not
in
[
"'"
,
'_'
,
'-'
,
'.'
,
' '
,
'~'
,
':'
,
'/'
,
'?'
,
'#'
,
'['
,
']'
,
'@'
,
'!'
,
'$'
,
'&'
,
'('
,
')'
,
'*'
,
'+'
,
';'
,
'='
],
title
)))
test_id
=
''
.
join
(
list
(
filter
(
# pylint:disable=deprecated-lambda
lambda
a
:
a
not
in
[
"'"
,
'_'
,
'-'
,
'.'
,
' '
,
'~'
,
':'
,
'/'
,
'?'
,
'#'
,
'['
,
']'
,
'@'
,
'!'
,
'$'
,
'&'
,
'('
,
')'
,
'*'
,
'+'
,
';'
,
'='
],
title
)))
if
test_id
not
in
context
.
objectIds
():
factory
=
context
.
manage_addProduct
[
'PageTemplates'
]
...
...
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_runSeleniumTest.py
View file @
8846bfa2
bt5/erp5_ui_test_core/SkinTemplateItem/portal_skins/erp5_ui_test_core/Zuite_uploadScreenshot.py
View file @
8846bfa2
"""
Upload a screenshot taken by the test to ERP5
"""
from
erp5.component.module.Log
import
log
data_uri
=
context
.
REQUEST
.
form
.
get
(
'data_uri'
,
'default'
)
image_module
=
getattr
(
context
,
"image_module"
,
None
)
...
...
bt5/erp5_ui_test_core/bt/skip_coding_style_test
deleted
100644 → 0
View file @
182f833d
1
\ No newline at end of file
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