String formatting improvements for tests (#33663)

This commit is contained in:
Franck Nijhof 2020-04-05 00:26:08 +02:00 committed by GitHub
parent 1c25468b21
commit 906385172a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 129 additions and 155 deletions

View file

@ -77,7 +77,7 @@ class TestSwitch(unittest.TestCase):
switch.DOMAIN,
{
switch.DOMAIN: {CONF_PLATFORM: "test"},
"{} 2".format(switch.DOMAIN): {CONF_PLATFORM: "test2"},
f"{switch.DOMAIN} 2": {CONF_PLATFORM: "test2"},
},
)