File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def _get_nh3_kwargs():
6161
6262 if "allowed_attributes" in settings .WAGTAILMARKDOWN :
6363 if override :
64- nh3_kwargs ["attributes" ] = { k : set (v ) for k , v in settings .WAGTAILMARKDOWN ["allowed_attributes" ].items ()}
64+ nh3_kwargs ["attributes" ] = dict (( k , set (v )) for k , v in settings .WAGTAILMARKDOWN ["allowed_attributes" ].items ())
6565 else :
6666 # Convert nh3 default attributes to same format as user attributes
6767 default_attrs = nh3_kwargs .get ("attributes" , {})
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ def test_get_nh3_kwargs_with_tags(self):
144144 )
145145
146146 def test_get_nh3_kwargs_with_attributes (self ):
147- allowed = {"*" : {"data-test" }}
148147 with override_settings (WAGTAILMARKDOWN = {"allowed_attributes" : {"*" : ["data-test" ]}}):
149148 expected = DEFAULT_NH3_KWARGS ["attributes" ].copy ()
150149 expected ["*" ].add ("data-test" )
You can’t perform that action at this time.
0 commit comments