Project

General

Profile

Actions

Bug #4208

open

[ce, ee] test errors get hidden by error page

Added by Daniel D over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
30.08.2016
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

Description

When running tests the traceback is excepted away by the error handler page, this makes it difficult to debug since eg

app.get('/page_that_errors')

will return a 500 error page instead of a traceback.

OTOH making tests always raise errors will then break the page that checks if the pretty error page is working as it should.

Need to add a dynamic setting, eg settings['use_error_document'] = False - that can be turned on/off at will and will disable the pretty error page handler for running tests.

Actions #1

Updated by Daniel D over 7 years ago

  • Assignee set to Daniel D
Actions #5

Updated by Daniel D over 7 years ago

  • Status changed from Resolved to Feedback

Reopening this as it seems tests on pyramid views, specifically seen in the integration views tests, exhibit the behaviour still - a work around to get tracebacks when running py.test is to set pyramid.includes = pyramid_debugtoolbar in test.ini but this will break the error page test.

Actions #6

Updated by Daniel D over 7 years ago

  • Status changed from Feedback to New
Actions

Also available in: Atom PDF