This one time, at band camp, Ben Bangert wrote:
>Yes, even if the traceback isn't shown, it will still toss a 500 giving
>you the same issue. paste.fixture assumes you want a 200 response,
>anything else and it blows. If you are expecting a 500 response,
>telling it you expect this will make it not throw an exception there
>(according to the docs). So I believe you'd want to do the request like
>so:
>resp = app.get('/something', status=500)
Right, forgot about testing status.
The thing is, if my test is failing due to an exception, I don't want
anything to trap it, because I want to debug the test :)
So, I don't know I'm expecting a 500, generally. I certainly don't want to
have the test pass if a 500 gets thrown in this instance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---