From e5b3c8bed364f10dadb1e81da7f99a6f5531d965 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 13 Dec 2016 14:03:00 +0100 Subject: fix #1850 --- test/mitmproxy/addons/test_stickyauth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/mitmproxy/addons/test_stickyauth.py b/test/mitmproxy/addons/test_stickyauth.py index 490e9aac..df74f44d 100644 --- a/test/mitmproxy/addons/test_stickyauth.py +++ b/test/mitmproxy/addons/test_stickyauth.py @@ -15,7 +15,8 @@ def test_configure(): def test_simple(): r = stickyauth.StickyAuth() - with taddons.context(): + with taddons.context() as tctx: + tctx.configure(r, stickyauth=".*") f = tflow.tflow(resp=True) f.request.headers["authorization"] = "foo" r.request(f) -- cgit v1.2.3