mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-31 15:28:50 +00:00
[web] Update test for static viewer.
This commit is contained in:
parent
0647d622a4
commit
a98dd1642c
@ -26,6 +26,12 @@ def test_save_filter_help(tmpdir):
|
|||||||
assert f.read() == json.dumps(dict(commands=flowfilter.help))
|
assert f.read() == json.dumps(dict(commands=flowfilter.help))
|
||||||
|
|
||||||
|
|
||||||
|
def test_save_settings(tmpdir):
|
||||||
|
static_viewer.save_settings(tmpdir)
|
||||||
|
f = tmpdir.join('/settings.json')
|
||||||
|
assert f.check(file=1)
|
||||||
|
|
||||||
|
|
||||||
def test_save_flows(tmpdir):
|
def test_save_flows(tmpdir):
|
||||||
flows = [tflow.tflow(req=True, resp=None), tflow.tflow(req=True, resp=True)]
|
flows = [tflow.tflow(req=True, resp=None), tflow.tflow(req=True, resp=True)]
|
||||||
static_viewer.save_flows(tmpdir, flows)
|
static_viewer.save_flows(tmpdir, flows)
|
||||||
|
Loading…
Reference in New Issue
Block a user