flask-testing
flask-testing copied to clipboard
Add .text attribute for .get_data(as_text=True)
It's inconvenient to have to use .get_data(as_text=True)
to test the textual representation of the response each time. This adds a convenience attribute, .text
that lazily uses .get_data(as_text=True)
, similar to what .json
does for JSON.