Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flask test_client() exceptions #120

Closed
gitaarik opened this issue Sep 5, 2013 · 3 comments
Closed

Flask test_client() exceptions #120

gitaarik opened this issue Sep 5, 2013 · 3 comments

Comments

@gitaarik
Copy link

gitaarik commented Sep 5, 2013

According to the Flask documentation we should get exceptions in our test_client() if we set testing = True:
http://flask.pocoo.org/docs/api/#flask.Flask.test_client

However, Flask-RESTful will stlll give only the {u'status': 500, u'message': u'Internal Server Error'} response when an uncatched exception occurs. Only when you set debug = True it will show the errors too.

I think because debug = True is the default behaviour of a Flask application, only for the test_client() it works differently in Flask. So maybe to prevent confusion, Flask-RESTful should also check the testing variable?

@dougblack
Copy link
Contributor

This should have been fixed by #111. What version of Flask-RESTful are you using?

@gitaarik
Copy link
Author

gitaarik commented Oct 9, 2013

Sorry for the late response, my pip freeze says:

Flask-RESTful==0.2.5

@dougblack
Copy link
Contributor

You'll need to update to the latest Flask-RESTful to get the functionality added by #111.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants