Skip to content

Commit

Permalink
Fix UP031 - Use format specifiers instead of percent format
Browse files Browse the repository at this point in the history
  • Loading branch information
ogajduse authored and Gauravtalreja1 committed May 8, 2024
1 parent c885c61 commit 346f1ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/foreman/cli/test_computeresource_libvirt.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_positive_list(libvirt_url, module_target_sat):
)
assert comp_res['name']
result_list = module_target_sat.cli.ComputeResource.list(
{'search': 'name=%s' % comp_res['name']}
{'search': 'name={}'.format(comp_res['name'])}
)
assert len(result_list) > 0
result = module_target_sat.cli.ComputeResource.exists(search=('name', comp_res['name']))
Expand Down

0 comments on commit 346f1ee

Please sign in to comment.