aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2018-05-08 14:24:41 +1200
committerAldo Cortesi <aldo@nullcube.com>2018-05-08 14:24:41 +1200
commit717fbaa99076545d11f554187759005dce1aa67b (patch)
treecc437a95786c34200340e43e39c145f0c5ea5d25 /test
parent76a7883c8b7651e7078ba351ea4675bb0bd0f3db (diff)
downloadmitmproxy-717fbaa99076545d11f554187759005dce1aa67b.tar.gz
mitmproxy-717fbaa99076545d11f554187759005dce1aa67b.tar.bz2
mitmproxy-717fbaa99076545d11f554187759005dce1aa67b.zip
optmanager: refactor for coverage and clarity
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/test_optmanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mitmproxy/test_optmanager.py b/test/mitmproxy/test_optmanager.py
index 77bcc007..4356434b 100644
--- a/test/mitmproxy/test_optmanager.py
+++ b/test/mitmproxy/test_optmanager.py
@@ -70,7 +70,7 @@ def test_defaults():
def test_required_int():
o = TO()
with pytest.raises(exceptions.OptionsError):
- o.parse_setval("required_int", None)
+ o.parse_setval(o._options["required_int"], None)
def test_deepcopy():