(dev_server, crash)
| 249 | @pytest.mark.parametrize("crash", (True, False)) |
| 250 | @pytest.mark.dev_server |
| 251 | def 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 | |
| 262 | def test_console_closure_variables(monkeypatch): |
nothing calls this directly
no test coverage detected