aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper_tools
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2017-03-05 14:55:46 +1300
committerAldo Cortesi <aldo@nullcube.com>2017-03-05 15:10:03 +1300
commit67381ae550a5d57c1f2841cd7118550afdfaa736 (patch)
treecb96c6def6624aa8e42c88dca5597e58d457106a /test/helper_tools
parente0644398b62a312652c15569c0f530a27963dcf4 (diff)
downloadmitmproxy-67381ae550a5d57c1f2841cd7118550afdfaa736.tar.gz
mitmproxy-67381ae550a5d57c1f2841cd7118550afdfaa736.tar.bz2
mitmproxy-67381ae550a5d57c1f2841cd7118550afdfaa736.zip
Revamp options
- Options are now explicitly initialized with an add_option method - We have one canonical Options class - ditch dump.Options
Diffstat (limited to 'test/helper_tools')
-rwxr-xr-xtest/helper_tools/dumperview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helper_tools/dumperview.py b/test/helper_tools/dumperview.py
index be56fe14..d417d767 100755
--- a/test/helper_tools/dumperview.py
+++ b/test/helper_tools/dumperview.py
@@ -4,12 +4,12 @@ import click
from mitmproxy.addons import dumper
from mitmproxy.test import tflow
from mitmproxy.test import taddons
-from mitmproxy.tools import dump
+from mitmproxy.tools import options
def show(flow_detail, flows):
d = dumper.Dumper()
- with taddons.context(options=dump.Options()) as ctx:
+ with taddons.context(options=options.Options()) as ctx:
ctx.configure(d, flow_detail=flow_detail)
for f in flows:
ctx.cycle(d, f)