I *temporarily* solved this by modifying an existing tween. The relevant code looks like this:
def my__tween(request):
_redirect = None
try:
response = handler(request)
except HTTPException as exc:
_redirect = exc
if _redirect:
return _redirect
return response
I'll likely migrate this to it's own tween for dev testing, unless I can figure out if the toolbar is loaded and run the code conditionally. In any event, this approach lets me run my full test suite with the toolbar enabled.