update tests for new werkzeug client (#3827)
Flask's client.open mirrors Werkzeug's for processing an existing environ. Always test with latest code for other Pallets projects. This will be changed back once the new versions are released.
This commit is contained in:
parent
373f0dd82e
commit
7a444c5dab
4 changed files with 39 additions and 33 deletions
|
|
@ -327,9 +327,9 @@ def test_modified_url_encoding(app, client):
|
|||
def index():
|
||||
return flask.request.args["foo"]
|
||||
|
||||
rv = client.get("/?foo=정상처리".encode("euc-kr"))
|
||||
rv = client.get("/", query_string={"foo": "정상처리"}, charset="euc-kr")
|
||||
assert rv.status_code == 200
|
||||
assert rv.data == "정상처리".encode()
|
||||
assert rv.get_data(as_text=True) == "정상처리"
|
||||
|
||||
|
||||
def test_json_key_sorting(app, client):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue