mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
fix tests
This commit is contained in:
parent
f215c3712d
commit
6472942756
@ -190,7 +190,8 @@ Larry
|
||||
[["content-type", "application/json"]],
|
||||
"[1, 2, 3]",
|
||||
1000,
|
||||
lambda x, l: None
|
||||
lambda x, l: None,
|
||||
False
|
||||
)
|
||||
assert "Raw" in r[0]
|
||||
|
||||
@ -199,7 +200,8 @@ Larry
|
||||
[["content-type", "application/json"]],
|
||||
"[1, 2, 3]",
|
||||
1000,
|
||||
lambda x, l: None
|
||||
lambda x, l: None,
|
||||
False
|
||||
)
|
||||
assert r[0] == "JSON"
|
||||
|
||||
@ -208,7 +210,8 @@ Larry
|
||||
[["content-type", "application/json"]],
|
||||
"[1, 2",
|
||||
1000,
|
||||
lambda x, l: None
|
||||
lambda x, l: None,
|
||||
False
|
||||
)
|
||||
assert "Raw" in r[0]
|
||||
|
||||
@ -217,7 +220,8 @@ Larry
|
||||
[],
|
||||
"[1, 2",
|
||||
1000,
|
||||
lambda x, l: None
|
||||
lambda x, l: None,
|
||||
False
|
||||
)
|
||||
assert "Raw" in r[0]
|
||||
|
||||
@ -230,7 +234,8 @@ Larry
|
||||
],
|
||||
encoding.encode('gzip', "[1, 2, 3]"),
|
||||
1000,
|
||||
lambda x, l: None
|
||||
lambda x, l: None,
|
||||
False
|
||||
)
|
||||
assert "decoded gzip" in r[0]
|
||||
assert "JSON" in r[0]
|
||||
@ -243,7 +248,8 @@ Larry
|
||||
],
|
||||
encoding.encode('gzip', "[1, 2, 3]"),
|
||||
1000,
|
||||
lambda x, l: None
|
||||
lambda x, l: None,
|
||||
False
|
||||
)
|
||||
assert "decoded gzip" in r[0]
|
||||
assert "Raw" in r[0]
|
||||
|
Loading…
Reference in New Issue
Block a user