MCPcopy
hub / github.com/pallets/werkzeug / test_app

Function test_app

tests/test_test.py:632–634  ·  view source on GitHub ↗
(environ, start_response)

Source from the content-addressed store, hash-verified

630
631def test_path_info_script_name_unquoting():
632 def test_app(environ, start_response):
633 start_response("200 OK", [("Content-Type", "text/plain")])
634 return [f"{environ['PATH_INFO']}\n{environ['SCRIPT_NAME']}"]
635
636 c = Client(test_app)
637 resp = c.get("/foo%40bar")

Callers

nothing calls this directly

Calls 5

set_cookieMethod · 0.95
ResponseClass · 0.90
start_responseFunction · 0.85
itemsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected