From ce01cb9c097614c12113df15e1f35839c1926e4d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Fri, 28 Apr 2017 11:24:28 +1200 Subject: command: partials Support partial commands in console.command, use it to keybind "i" for intercept, which prompts the user with ":set intercept=". --- test/mitmproxy/addons/test_core.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/mitmproxy/addons/test_core.py b/test/mitmproxy/addons/test_core.py index 99bf3f40..6ebf4ba9 100644 --- a/test/mitmproxy/addons/test_core.py +++ b/test/mitmproxy/addons/test_core.py @@ -7,6 +7,8 @@ import pytest def test_set(): sa = core.Core() with taddons.context() as tctx: + tctx.master.addons.add(sa) + assert not tctx.master.options.anticomp tctx.command(sa.set, "anticomp") assert tctx.master.options.anticomp -- cgit v1.2.3