From 346f1ee68643c9a378db837d3b360cfb93d1ff0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Gajdu=C5=A1ek?= Date: Tue, 7 May 2024 17:13:02 +0200 Subject: [PATCH] Fix UP031 - Use format specifiers instead of percent format --- tests/foreman/cli/test_computeresource_libvirt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/foreman/cli/test_computeresource_libvirt.py b/tests/foreman/cli/test_computeresource_libvirt.py index 656a8ed32ca..c36181711f4 100644 --- a/tests/foreman/cli/test_computeresource_libvirt.py +++ b/tests/foreman/cli/test_computeresource_libvirt.py @@ -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']))