mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
Add basic test for har_extractor
This commit is contained in:
parent
1f41719bbc
commit
c982f579dd
0
examples/__init__.py
Normal file
0
examples/__init__.py
Normal file
10
test/mitmproxy/test_har_extractor.py
Normal file
10
test/mitmproxy/test_har_extractor.py
Normal file
@ -0,0 +1,10 @@
|
||||
from . import tutils
|
||||
|
||||
from mitmproxy import script, flow
|
||||
from examples import har_extractor
|
||||
|
||||
|
||||
def test_start():
|
||||
fm = flow.FlowMaster(None, flow.State())
|
||||
ctx = script.ScriptContext(fm)
|
||||
tutils.raises(ValueError, har_extractor.start, ctx, [])
|
Loading…
Reference in New Issue
Block a user