flask-testing icon indicating copy to clipboard operation
flask-testing copied to clipboard

Add .text attribute for .get_data(as_text=True)

Open joelburton opened this issue 5 years ago • 0 comments

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.

joelburton avatar Jul 10 '19 23:07 joelburton