unit tests: use f-strings (#10993)

This commit is contained in:
Alexei Znamensky
2025-10-27 12:32:33 +13:00
committed by GitHub
parent e177d1e61a
commit efad7a0d38
25 changed files with 54 additions and 78 deletions

View File

@@ -7,7 +7,7 @@ from __future__ import annotations
def fake_xenapi_ref(xenapi_class):
return "OpaqueRef:fake-xenapi-%s-ref" % xenapi_class
return f"OpaqueRef:fake-xenapi-{xenapi_class}-ref"
testcase_bad_xenapi_refs = {