diff --git a/tests/unit/misc/test_editor.py b/tests/unit/misc/test_editor.py index d97cb6657..dbc4c51ed 100644 --- a/tests/unit/misc/test_editor.py +++ b/tests/unit/misc/test_editor.py @@ -71,6 +71,13 @@ class TestArg: editor._proc._proc.start.assert_called_with( "bin", ["foo", editor._filename, "bar"]) + def test_placeholder_inline(self, config_stub, editor): + """Test starting editor with placeholder arg inside of another arg.""" + config_stub.data['general']['editor'] = ['bin', 'foo{}', 'bar'] + editor.edit("") + editor._proc._proc.start.assert_called_with( + "bin", ["foo" + editor._filename, "bar"]) + class TestFileHandling: