update test cookie handling for Werkzeug 2.3

This commit is contained in:
David Lord 2023-04-12 10:33:52 -07:00
parent a30b6e723c
commit 04c21387db
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 47 additions and 58 deletions

View file

@ -267,25 +267,6 @@ def _has_encoding(name):
return False
@pytest.mark.skipif(
not _has_encoding("euc-kr"), reason="The euc-kr encoding is required."
)
def test_modified_url_encoding(app, client):
class ModifiedRequest(flask.Request):
url_charset = "euc-kr"
app.request_class = ModifiedRequest
app.url_map.charset = "euc-kr"
@app.route("/")
def index():
return flask.request.args["foo"]
rv = client.get("/", query_string={"foo": "정상처리"}, charset="euc-kr")
assert rv.status_code == 200
assert rv.get_data(as_text=True) == "정상처리"
def test_json_key_sorting(app, client):
app.debug = True
assert app.json.sort_keys