We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01fdcee commit 6f74db5Copy full SHA for 6f74db5
tests/basic_rendering_test.py
@@ -116,6 +116,17 @@ def test_call_adds_mixed_attrs_children_link():
116
])
117
118
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
130
def test_tags_with_trailing_undercore_render_without():
131
"""
132
Some tags have a trailing underscore to avoid name collisions. When
0 commit comments