Skip to content

Prettify HTML output #249

@azmeuk

Description

@azmeuk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions