We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 679ea54 commit e9a646dCopy full SHA for e9a646d
test/test_editor.py
@@ -20,7 +20,7 @@ def test_existing(self, call):
20
assert actual == expected
21
22
filename = Path(FILENAME).resolve()
23
- call.assert_called_once_with('{} "{}"'.format(EDITOR, filename))
+ call.assert_called_once_with(f'{EDITOR} "{filename}"')
24
25
actual = editor('X', filename=filename)
26
expected = 'X'
@@ -33,7 +33,7 @@ def test_new(self, call):
33
34
35
36
- expected = '{} "{}"'.format(EDITOR, filename)
+ expected = f'{EDITOR} "{filename}"'
37
call.assert_called_once_with(expected, shell=True)
38
39
def test_temp(self, call):
0 commit comments