aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-03-19 13:39:28 +1300
committerAldo Cortesi <aldo@corte.si>2017-03-19 13:39:28 +1300
commit43e7b9d68c4dc0c67c43175af52a00c5601496e0 (patch)
treec82a255831ac9a9e3b392089f86858f888911030 /test
parent22d7c31ea8cad01614debe674826841f843fd318 (diff)
downloadmitmproxy-43e7b9d68c4dc0c67c43175af52a00c5601496e0.tar.gz
mitmproxy-43e7b9d68c4dc0c67c43175af52a00c5601496e0.tar.bz2
mitmproxy-43e7b9d68c4dc0c67c43175af52a00c5601496e0.zip
options: choices for content views and tighten console order spec
Also clean up some leftovers from filter option name change.
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_view.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/mitmproxy/addons/test_view.py b/test/mitmproxy/addons/test_view.py
index b7842314..7fa3819e 100644
--- a/test/mitmproxy/addons/test_view.py
+++ b/test/mitmproxy/addons/test_view.py
@@ -264,7 +264,7 @@ def test_signals():
def test_focus_follow():
v = view.View()
with taddons.context(options=options.Options()) as tctx:
- tctx.configure(v, console_focus_follow=True, filter="~m get")
+ tctx.configure(v, console_focus_follow=True, view_filter="~m get")
v.add(tft(start=5))
assert v.focus.index == 0
@@ -378,9 +378,9 @@ def test_settings():
def test_configure():
v = view.View()
with taddons.context(options=options.Options()) as tctx:
- tctx.configure(v, filter="~q")
+ tctx.configure(v, view_filter="~q")
with pytest.raises(Exception, match="Invalid interception filter"):
- tctx.configure(v, filter="~~")
+ tctx.configure(v, view_filter="~~")
tctx.configure(v, console_order="method")
with pytest.raises(Exception, match="Unknown flow order"):
@@ -388,7 +388,5 @@ def test_configure():
tctx.configure(v, console_order_reversed=True)
- tctx.configure(v, console_order=None)
-
tctx.configure(v, console_focus_follow=True)
assert v.focus_follow