Remove string concatenation in favor of string formatting
Some of the modules still utilized string concatenation instead of using formatting. In order to align with other modules in the project, I refactored these modules to use string formatting instead. Change-Id: I708392e1d03b6331a134419aa0ae9dc02a05c31b Closes-Bug: 1522738
This commit is contained in:
committed by
Jean-Emile DARTOIS
parent
62570525ad
commit
1c49d07912
@@ -34,7 +34,7 @@ class DbAuditTemplateTestCase(base.DbTestCase):
|
||||
for i in range(1, 6):
|
||||
audit_template = utils.create_test_audit_template(
|
||||
uuid=w_utils.generate_uuid(),
|
||||
name='My Audit Template ' + str(i))
|
||||
name='My Audit Template {0}'.format(i))
|
||||
uuids.append(six.text_type(audit_template['uuid']))
|
||||
res = self.dbapi.get_audit_template_list(self.context)
|
||||
res_uuids = [r.uuid for r in res]
|
||||
|
||||
Reference in New Issue
Block a user