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:
David Lord 2020-11-04 18:00:21 -08:00 committed by GitHub
parent 8817c77eb0
commit eecaf84333
4 changed files with 39 additions and 33 deletions

View file

@ -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):