Skip to content

Commit 6f74db5

Browse files
One more test case for good luck
1 parent 01fdcee commit 6f74db5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/basic_rendering_test.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,17 @@ def test_call_adds_mixed_attrs_children_link():
116116
])
117117

118118

119+
def test_call_adds_mixed_attrs_children_script():
120+
"""Calling a tag adds more properties, using a script tag"""
121+
assert str(
122+
script(type="blah/blah")("// Some JS")
123+
) == "\n".join([
124+
'<script type="blah/blah">',
125+
' // Some JS',
126+
'</script>',
127+
])
128+
129+
119130
def test_tags_with_trailing_undercore_render_without():
120131
"""
121132
Some tags have a trailing underscore to avoid name collisions. When

0 commit comments

Comments
 (0)