Skip to content
New issue

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

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

Already on GitHub? # to your account

Prettify HTML output #249

Open
azmeuk opened this issue Mar 16, 2023 · 0 comments
Open

Prettify HTML output #249

azmeuk opened this issue Mar 16, 2023 · 0 comments

Comments

@azmeuk
Copy link
Member

azmeuk commented Mar 16, 2023

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?

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

No branches or pull requests

1 participant