Skip to content

Commit

Permalink
One more test case for good luck
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Oct 3, 2023
1 parent 01fdcee commit 6f74db5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/basic_rendering_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,17 @@ def test_call_adds_mixed_attrs_children_link():
])


def test_call_adds_mixed_attrs_children_script():
"""Calling a tag adds more properties, using a script tag"""
assert str(
script(type="blah/blah")("// Some JS")
) == "\n".join([
'<script type="blah/blah">',
' // Some JS',
'</script>',
])


def test_tags_with_trailing_undercore_render_without():
"""
Some tags have a trailing underscore to avoid name collisions. When
Expand Down

0 comments on commit 6f74db5

Please sign in to comment.