Add text and json fallback error handlers (#1937)
* Add text and json fallback error handlers * Add tests and auto-detect error fallback type
This commit is contained in:
@@ -126,7 +126,7 @@ def test_app_handle_request_handler_is_none(app, monkeypatch):
|
||||
def handler(request):
|
||||
return text("test")
|
||||
|
||||
request, response = app.test_client.get("/test")
|
||||
_, response = app.test_client.get("/test")
|
||||
|
||||
assert (
|
||||
"'None' was returned while requesting a handler from the router"
|
||||
|
||||
Reference in New Issue
Block a user