MCPcopy Create free account
hub / github.com/pallets/werkzeug / test_basic

Function test_basic

tests/test_debug.py:251–259  ·  view source on GitHub ↗
(dev_server, crash)

Source from the content-addressed store, hash-verified

249@pytest.mark.parametrize("crash", (True, False))
250@pytest.mark.dev_server
251def test_basic(dev_server, crash):
252 c = dev_server(use_debugger=True)
253 r = c.request("/crash" if crash else "")
254 assert r.status == (500 if crash else 200)
255
256 if crash:
257 assert b"The debugger caught an exception in your WSGI application" in r.data
258 else:
259 assert r.json["PATH_INFO"] == "/"
260
261
262def test_console_closure_variables(monkeypatch):

Callers

nothing calls this directly

Calls 2

dev_serverFunction · 0.85
requestMethod · 0.80

Tested by

no test coverage detected