aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2017-05-02 12:00:08 +1200
committerAldo Cortesi <aldo@nullcube.com>2017-05-02 12:56:27 +1200
commitdcae79e017c5fb267a4091d9584990e75777cc38 (patch)
tree2442d2393690b70c9c66c924fe308c5ca8e4c37d /test
parent4e39d387d374f1f000f9ddf01c799369bfc25ddb (diff)
downloadmitmproxy-dcae79e017c5fb267a4091d9584990e75777cc38.tar.gz
mitmproxy-dcae79e017c5fb267a4091d9584990e75777cc38.tar.bz2
mitmproxy-dcae79e017c5fb267a4091d9584990e75777cc38.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_core.py2
-rw-r--r--test/mitmproxy/addons/test_script.py2
2 files changed, 2 insertions, 2 deletions
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()