From 475a4e3eb03e2a704f078e1bb7f11fd199b0bb52 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 19 Mar 2017 13:08:26 +1300 Subject: streamfile: add streamfile_filter and use it instead of filtstr --- test/mitmproxy/addons/test_streamfile.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/mitmproxy/addons/test_streamfile.py b/test/mitmproxy/addons/test_streamfile.py index 3f78521c..bcb27c79 100644 --- a/test/mitmproxy/addons/test_streamfile.py +++ b/test/mitmproxy/addons/test_streamfile.py @@ -15,10 +15,12 @@ def test_configure(tmpdir): with pytest.raises(exceptions.OptionsError): tctx.configure(sa, streamfile=str(tmpdir)) with pytest.raises(Exception, match="Invalid filter"): - tctx.configure(sa, streamfile=str(tmpdir.join("foo")), filtstr="~~") - tctx.configure(sa, filtstr="foo") + tctx.configure( + sa, streamfile=str(tmpdir.join("foo")), streamfile_filter="~~" + ) + tctx.configure(sa, streamfile_filter="foo") assert sa.filt - tctx.configure(sa, filtstr=None) + tctx.configure(sa, streamfile_filter=None) assert not sa.filt -- cgit v1.2.3