Skip to content

Commit

Permalink
fix: Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paveldedik committed Jun 26, 2024
1 parent 3e02e5a commit ee0bc57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ def test_expand_nested() -> None:
assert span_dom.to_html() == "<span><p>1</p><p>2</p><p>3</p></span>"


def test_repr_and_str() -> None:
def test_repr_and_str_and_to_string() -> None:
dom = html.div(html.p(1), html.p(2), html.p(3), id="test")
assert repr(dom) == '<div id="test"><p>1</p><p>2</p><p>3</p></div>'
assert str(dom) == (
assert repr(dom) == str(dom) == '<div id="test"><p>1</p><p>2</p><p>3</p></div>'
assert dom.to_string() == (
'<div id="test">\n'
" <p>1</p>\n"
" <p>2</p>\n"
Expand Down

0 comments on commit ee0bc57

Please sign in to comment.