diff options
author | Aldo Cortesi <aldo@corte.si> | 2017-04-28 11:24:28 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@corte.si> | 2017-04-28 11:24:28 +1200 |
commit | ce01cb9c097614c12113df15e1f35839c1926e4d (patch) | |
tree | 9dde488216525ac70d63d6729a8fd712381ebe13 /test | |
parent | 8a07059cf43104636f8f6c6f52854da66a9b9ea8 (diff) | |
download | mitmproxy-ce01cb9c097614c12113df15e1f35839c1926e4d.tar.gz mitmproxy-ce01cb9c097614c12113df15e1f35839c1926e4d.tar.bz2 mitmproxy-ce01cb9c097614c12113df15e1f35839c1926e4d.zip |
command: partials
Support partial commands in console.command, use it to keybind "i" for
intercept, which prompts the user with ":set intercept=".
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_core.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |