Remove unused 'fake_error' view

has been superseded by CommonView.bogus_error
This commit is contained in:
Lance Edgar 2017-05-13 14:10:00 -05:00
parent f02d6d4b16
commit 737973f4fc

View file

@ -98,16 +98,3 @@ class View(object):
filename = os.path.basename(path).encode('ascii', 'replace')
response.headers[b'Content-Disposition'] = b'attachment; filename="{}"'.format(filename)
return response
def fake_error(request):
"""
View which raises a fake error, to test exception handling.
"""
raise Exception("Fake error, to test exception handling.")
def includeme(config):
config.add_route('fake_error', '/fake-error')
config.add_view(fake_error, route_name='fake_error',
permission='admin')