Skip to content

Commit 694d979

Browse files
authored
lint: fix string formatting (#3211)
Merged a linter upgrade along with an older PR, so this was immediately in violation Signed-off-by: Milas Bowman <milas.bowman@docker.com>
1 parent eeb9ea1 commit 694d979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/models_configs_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ class CreateConfigsTest(unittest.TestCase):
77
def test_create_config(self):
88
client = make_fake_client()
99
config = client.configs.create(name="super_config", data="config")
10-
assert config.__repr__() == "<Config: '{}'>".format(FAKE_CONFIG_NAME)
10+
assert config.__repr__() == f"<Config: '{FAKE_CONFIG_NAME}'>"

0 commit comments

Comments
 (0)