Skip to content

Commit

Permalink
Fix code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Apr 13, 2024
1 parent 3ca14dc commit 060cf45
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions tests/basic_rendering_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ def test_flatten_element_lists():

def test_flatten_element_generators():
"""
If a list of elements is given as a child element, each element should be
considered as a child.
If a generator of elements is given as a child element, each element
yielded should be considered as a child.
"""
doc = html(c for c in "hi")

Expand All @@ -221,6 +221,21 @@ def test_flatten_element_generators():
])


def test_flatten_element_other_sequence():
"""
If a tuple of elements is given as a child element, each element should be
considered as a child.
"""
doc = html(("h", "i"))

assert str(doc) == "\n".join([
"<html>",
" h",
" i",
"</html>",
])


def test_classes_can_render():
"""
Can a class by itself be rendered individually?
Expand Down

0 comments on commit 060cf45

Please sign in to comment.