tests: refactor code to use a single test url generator

This commit is contained in:
RhodeCode Admin 2023-10-04 19:36:19 +02:00
parent 28f89c682d
commit 6e5314f631
67 changed files with 401 additions and 1277 deletions

View file

@ -258,6 +258,8 @@ def error_handler(exception, request):
'/errors/error_document.mako', {'c': c, 'h': helpers}, request=request,
response=base_response)
response.headers["X-RC-Exception-Id"] = str(c.exception_id)
statsd = request.registry.statsd
if statsd and base_response.status_code > 499:
exc_type = f"{exception.__class__.__module__}.{exception.__class__.__name__}"