From 37bb26bdd52e37c994ab43e32f3ea52fa3e1362d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 2 Feb 2016 06:53:12 +0100 Subject: [PATCH] Add a test in test_editor.py. --- tests/unit/misc/test_editor.py | 7 +++++++ 1 file changed, 7 insertions(+) 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: