mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
Fix flow formatting unit tests.
This commit is contained in:
parent
897bd5c2b8
commit
e35fd7126b
@ -101,11 +101,9 @@ class uformat_flow(libpry.AutoTree):
|
||||
f.request = f.response.request
|
||||
f.backup()
|
||||
|
||||
assert ('method', '[edited] ') in console.format_flow(f, True)
|
||||
assert ('method', '[edited] ') in console.format_flow(f, True, True)
|
||||
f.request.set_replay()
|
||||
assert ('method', '[replay] ') in console.format_flow(f, True)
|
||||
assert ('method', '[replay] ') in console.format_flow(f, True, True)
|
||||
assert ('method', '[replay]') in console.format_flow(f, True)
|
||||
assert ('method', '[replay]') in console.format_flow(f, True, True)
|
||||
|
||||
f.response.code = 404
|
||||
assert ('error', '404') in console.format_flow(f, True, True)
|
||||
|
Loading…
Reference in New Issue
Block a user