mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
pylint: Fix duplicate-string-formatting-argument
pylint 2.2 has a checker for duplicate string formatting argument. Instead of passing the same argument multiple times, reference the argument by position. See: https://pagure.io/freeipa/issue/7772 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Thomas Woerner <twoerner@redhat.com>
This commit is contained in:
parent
533a5b2633
commit
f800d8f8ca
@ -84,9 +84,9 @@ class test_config(UI_driver):
|
||||
self.add_record(user_data.ENTITY, user_data.DATA2)
|
||||
self.navigate_to_record(user_data.DATA2['pkey'])
|
||||
if multivalued:
|
||||
s = "div[name={}] input[name={}-0]".format(field, field)
|
||||
s = "div[name={0}] input[name={0}-0]".format(field)
|
||||
else:
|
||||
s = "div[name={}] input[name={}]".format(field, field)
|
||||
s = "div[name={0}] input[name={0}]".format(field)
|
||||
assert self.get_value(s) == name
|
||||
self.delete(user_data.ENTITY, [user_data.DATA2])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user