From 6f74db59385ea562b0c91c93f8cc16d5289c082a Mon Sep 17 00:00:00 2001 From: Miguel Guthridge Date: Tue, 3 Oct 2023 19:32:28 +1100 Subject: [PATCH] One more test case for good luck --- tests/basic_rendering_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/basic_rendering_test.py b/tests/basic_rendering_test.py index f2a23ce..c15d2c9 100644 --- a/tests/basic_rendering_test.py +++ b/tests/basic_rendering_test.py @@ -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([ + '', + ]) + + def test_tags_with_trailing_undercore_render_without(): """ Some tags have a trailing underscore to avoid name collisions. When