From dcae79e017c5fb267a4091d9584990e75777cc38 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Tue, 2 May 2017 12:00:08 +1200 Subject: console: various bugs - Action bar now correctly gets the palette background - Viewing connection details for a killed flow no longer crashes - Editing options with selections no longer crashes --- test/mitmproxy/addons/test_core.py | 2 +- test/mitmproxy/addons/test_script.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/mitmproxy/addons/test_core.py b/test/mitmproxy/addons/test_core.py index 3c3c7bf7..c132d80a 100644 --- a/test/mitmproxy/addons/test_core.py +++ b/test/mitmproxy/addons/test_core.py @@ -150,7 +150,7 @@ def test_options(tmpdir): sa.options_save(p) with pytest.raises(exceptions.CommandError): - sa.options_save("/nonexistent") + sa.options_save("/") sa.options_reset() assert tctx.options.stickyauth is None diff --git a/test/mitmproxy/addons/test_script.py b/test/mitmproxy/addons/test_script.py index a3df1fcf..dd5349cb 100644 --- a/test/mitmproxy/addons/test_script.py +++ b/test/mitmproxy/addons/test_script.py @@ -152,7 +152,7 @@ class TestScriptLoader: sc = script.ScriptLoader() with taddons.context(): with pytest.raises(exceptions.CommandError): - sc.script_run([tflow.tflow(resp=True)], "/nonexistent") + sc.script_run([tflow.tflow(resp=True)], "/") def test_simple(self): sc = script.ScriptLoader() -- cgit v1.2.3