Commit 3825f08a authored by Laurent Peuch's avatar Laurent Peuch
Browse files

chore: please flake8

parent 41fd77fd768a
Pipeline #11312 passed with stage
in 17 minutes and 30 seconds
......@@ -210,7 +210,7 @@ def post_build_callback(schema):
rrql_exprs = []
if target_etype == 'SEDAArchiveUnit':
rrql_exprs.append('U has_update_permission {0}, NOT EXISTS({0} container C)'
.format(var, var))
.format(var))
rrql_exprs.append('U has_update_permission C, {0} container C'.format(var))
else:
......
......@@ -33,7 +33,7 @@ def add_links_from_rtype_roles(entity, rtype_roles, extraurlparams):
"""
links = [add_subobject_link(entity, rtype, role, extraurlparams, klass='')
for rtype, role in rtype_roles]
return [l for l in links if l]
return [link for link in links if link]
def display_add_button(w, links, label):
......
......@@ -359,7 +359,7 @@ class SimplifiedFormsTC(CubicWebTC):
'InlineAddNewLinkView'),
])
form = self.create_and_link_form(
req, 'SEDAClassificationRule'.format(rule_type.capitalize()),
req, 'SEDAClassificationRule',
linkto=self.transfer_eid)
self.assertInlinedFields(form, [
('seda_seq_classification_rule_rule', 'InlineAddNewLinkView'),
......
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