@nathanbegbie I actually fiddled with this code yesterday. Have a look at the changes I made here and here.
Turns out the notfound_view_config decorator doesn't set the proper response code (surprisingly). Also, webtest.TestApp raises an exception when 404 is returned unless you explicitly tell it to expect an error response.
@nathanbegbie I actually fiddled with this code yesterday. Have a look at the changes I made here and here.
Turns out the
notfound_view_config
decorator doesn't set the proper response code (surprisingly). Also,webtest.TestApp
raises an exception when 404 is returned unless you explicitly tell it to expect an error response.