aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_streamfile.py8
1 files changed, 5 insertions, 3 deletions
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