@@ -104,13 +104,13 @@ def test_script_has_no_event_handlers():
104104
105105
106106def test_simple_fragment ():
107- assert html . fragment () == {"tagName" : "" }
108- assert html . fragment (1 , 2 , 3 ) == {"tagName" : "" , "children" : [1 , 2 , 3 ]}
109- assert html . fragment ({"key" : "something" }) == {
107+ assert html () == {"tagName" : "" }
108+ assert html (1 , 2 , 3 ) == {"tagName" : "" , "children" : [1 , 2 , 3 ]}
109+ assert html ({"key" : "something" }) == {
110110 "tagName" : "" ,
111111 "attributes" : {"key" : "something" },
112112 }
113- assert html . fragment ({"key" : "something" }, 1 , 2 , 3 ) == {
113+ assert html ({"key" : "something" }, 1 , 2 , 3 ) == {
114114 "tagName" : "" ,
115115 "attributes" : {"key" : "something" },
116116 "children" : [1 , 2 , 3 ],
@@ -119,7 +119,7 @@ def test_simple_fragment():
119119
120120def test_fragment_can_have_no_attributes ():
121121 with pytest .raises (TypeError , match = r"Fragments cannot have attributes" ):
122- html . fragment ({"someAttribute" : 1 })
122+ html ({"someAttribute" : 1 })
123123
124124
125125async def test_svg (display : DisplayFixture ):
0 commit comments