@@ -235,13 +235,13 @@ def create_asset(
235
235
236
236
def append_extra_html (self , extra , extra_index , test_index ):
237
237
href = None
238
- if extra .get ("format " ) == extras .FORMAT_IMAGE :
238
+ if extra .get ("format_type " ) == extras .FORMAT_IMAGE :
239
239
self ._append_image (extra , extra_index , test_index )
240
240
241
- elif extra .get ("format " ) == extras .FORMAT_HTML :
241
+ elif extra .get ("format_type " ) == extras .FORMAT_HTML :
242
242
self .additional_html .append (html .div (raw (extra .get ("content" ))))
243
243
244
- elif extra .get ("format " ) == extras .FORMAT_JSON :
244
+ elif extra .get ("format_type " ) == extras .FORMAT_JSON :
245
245
content = json .dumps (extra .get ("content" ))
246
246
if self .self_contained :
247
247
href = data_uri (content , mime_type = extra .get ("mime_type" ))
@@ -250,7 +250,7 @@ def append_extra_html(self, extra, extra_index, test_index):
250
250
content , extra_index , test_index , extra .get ("extension" )
251
251
)
252
252
253
- elif extra .get ("format " ) == extras .FORMAT_TEXT :
253
+ elif extra .get ("format_type " ) == extras .FORMAT_TEXT :
254
254
content = extra .get ("content" )
255
255
if isinstance (content , bytes ):
256
256
content = content .decode ("utf-8" )
@@ -261,17 +261,17 @@ def append_extra_html(self, extra, extra_index, test_index):
261
261
content , extra_index , test_index , extra .get ("extension" )
262
262
)
263
263
264
- elif extra .get ("format " ) == extras .FORMAT_URL :
264
+ elif extra .get ("format_type " ) == extras .FORMAT_URL :
265
265
href = extra .get ("content" )
266
266
267
- elif extra .get ("format " ) == extras .FORMAT_VIDEO :
267
+ elif extra .get ("format_type " ) == extras .FORMAT_VIDEO :
268
268
self ._append_video (extra , extra_index , test_index )
269
269
270
270
if href is not None :
271
271
self .links_html .append (
272
272
html .a (
273
273
extra .get ("name" ),
274
- class_ = extra .get ("format " ),
274
+ class_ = extra .get ("format_type " ),
275
275
href = href ,
276
276
target = "_blank" ,
277
277
)
0 commit comments