From ee0bc57a7405fb4d33f46190817c4374fdba8b6d Mon Sep 17 00:00:00 2001 From: Pavel Dedik Date: Wed, 26 Jun 2024 09:54:22 +0200 Subject: [PATCH] fix: Tests --- tests/test_elements.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_elements.py b/tests/test_elements.py index 7f09aff..075d95a 100644 --- a/tests/test_elements.py +++ b/tests/test_elements.py @@ -142,10 +142,10 @@ def test_expand_nested() -> None: assert span_dom.to_html() == "

1

2

3

" -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) == '

1

2

3

' - assert str(dom) == ( + assert repr(dom) == str(dom) == '

1

2

3

' + assert dom.to_string() == ( '
\n' "

1

\n" "

2

\n"