There was an error while loading. Please reload this page.
2 parents 4cae5d8 + 91c6b3f commit 7ef2946Copy full SHA for 7ef2946
1 file changed
tests/test_reqctx.py
@@ -294,27 +294,6 @@ def test_bad_environ_raises_bad_request():
294
assert response.status_code == 400
295
296
297
-def test_environ_for_valid_idna_completes():
298
- app = flask.Flask(__name__)
299
-
300
- @app.route("/")
301
- def index():
302
- return "Hello World!"
303
304
- from flask.testing import EnvironBuilder
305
306
- builder = EnvironBuilder(app)
307
- environ = builder.get_environ()
308
309
- # these characters are all IDNA-compatible
310
- environ["HTTP_HOST"] = "ąśźäüжŠßя.com"
311
312
- with app.request_context(environ) as ctx:
313
- response = app.full_dispatch_request(ctx)
314
315
- assert response.status_code == 200
316
317
318
def test_normal_environ_completes():
319
app = flask.Flask(__name__)
320
0 commit comments