diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-10-30 17:42:34 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-10-30 17:42:34 +1300 |
commit | a67a5918939a1dd4e5374d79b42885f3c7e106ef (patch) | |
tree | f4060f6f63932959739945131cbc1f7b43973a67 /test | |
parent | 7a6bae336b35175b26494bf86fe740e61a34723f (diff) | |
download | mitmproxy-a67a5918939a1dd4e5374d79b42885f3c7e106ef.tar.gz mitmproxy-a67a5918939a1dd4e5374d79b42885f3c7e106ef.tar.bz2 mitmproxy-a67a5918939a1dd4e5374d79b42885f3c7e106ef.zip |
console: o for flow order
"o" shortcut and --order cmdline option to change flow order.
Options is now bound to "O".
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/addons/test_view.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/mitmproxy/addons/test_view.py b/test/mitmproxy/addons/test_view.py index c7a9821a..a05dc60c 100644 --- a/test/mitmproxy/addons/test_view.py +++ b/test/mitmproxy/addons/test_view.py @@ -266,8 +266,9 @@ def test_settings(): class Options(options.Options): - def __init__(self, *, filter=None, **kwargs): + def __init__(self, *, filter=None, order=None, **kwargs): self.filter = filter + self.order = order super().__init__(**kwargs) @@ -276,3 +277,6 @@ def test_configure(): with taddons.context(options=Options()) as tctx: tctx.configure(v, filter="~q") tutils.raises("invalid interception filter", tctx.configure, v, filter="~~") + + tctx.configure(v, order="method") + tutils.raises("unknown flow order", tctx.configure, v, order="no") |