Prettify HTML output
Opened this issue · 0 comments
azmeuk commented
Sometimes in unit tests one have to check the presence of a string in a HTML output. Sometimes pyquery is pertinent for that, but not always. When a test is looking for a string in HTML and it fails, it would be nice to display a formatted HTML so developers can easily see what is wrong.
The beautifoulsoup prettify
method does this. I suggest to prettify the output, by default or as an option.
What do you think?