diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_save.py | 2 | ||||
-rw-r--r-- | test/mitmproxy/tools/console/test_defaultkeys.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/mitmproxy/addons/test_save.py b/test/mitmproxy/addons/test_save.py index 4aa1f648..6727a96f 100644 --- a/test/mitmproxy/addons/test_save.py +++ b/test/mitmproxy/addons/test_save.py @@ -73,7 +73,7 @@ def test_save_command(tmpdir): v = view.View() tctx.master.addons.add(v) tctx.master.addons.add(sa) - tctx.master.commands.call_strings("save.file", ["@shown", p]) + tctx.master.commands.execute("save.file @shown %s" % p) def test_simple(tmpdir): diff --git a/test/mitmproxy/tools/console/test_defaultkeys.py b/test/mitmproxy/tools/console/test_defaultkeys.py index 40e536b0..9c79525b 100644 --- a/test/mitmproxy/tools/console/test_defaultkeys.py +++ b/test/mitmproxy/tools/console/test_defaultkeys.py @@ -18,7 +18,7 @@ async def test_commands_exist(): await m.load_flow(tflow()) for binding in km.bindings: - results = command_manager.parse_partial(binding.command) + results = command_manager.parse_partial(binding.command.strip()) cmd = results[0][0].value args = [a.value for a in results[0][1:]] |