Commit d0457a07 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

ui_test_core: pylint on py3

parent 52d7beeb
...@@ -8,12 +8,9 @@ assert context.getPortalType() == "Test Tool", "bad context" ...@@ -8,12 +8,9 @@ assert context.getPortalType() == "Test Tool", "bad context"
if test_id is None or test_id == '': if test_id is None or test_id == '':
test_id = ''.join( test_id = ''.join(
list( [a for a in title if a not in
filter( # pylint:disable=deprecated-lambda ("'", '_', '-', '.', ' ', '~', ':', '/', '?', '#', '[', ']', '@', '!',
lambda a: a not in [ '$', '&', '(', ')', '*', '+', ';', '=')])
"'", '_', '-', '.', ' ', '~', ':', '/', '?', '#', '[', ']', '@', '!',
'$', '&', '(', ')', '*', '+', ';', '='
], title)))
if test_id not in context.objectIds(): if test_id not in context.objectIds():
factory = context.manage_addProduct['PageTemplates'] factory = context.manage_addProduct['PageTemplates']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment