Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add test coverage for existing expected behaviour
  • Loading branch information
jayaddison committed Oct 29, 2022
commit 5f8a0c8c35ee7e58a3d428c0f3b575220e7e1d0f
10 changes: 10 additions & 0 deletions tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,16 @@ def test_entity_hex_euro_fail():
assert "€" not in root[0].text


# ############################# Text Content ############################# #


def test_text_iterator():
html = "<html><body>sample text content</body></html>"
root = quick_parsehtml(html)
body = root.find(".//body")
assert "".join(body.itertext()) == "sample text content"


# ############################# Filter Test ############################## #


Expand Down