@@ -69,7 +69,12 @@ class CWLTestReport:
69
69
"""Encapsulate relevant test result data for a markdown report."""
70
70
71
71
def __init__ (
72
- self , id : str , category : list [str ], entry : str , tool : str , job : Optional [str ]
72
+ self ,
73
+ id : Union [int , str ],
74
+ category : list [str ],
75
+ entry : str ,
76
+ tool : str ,
77
+ job : Optional [str ],
73
78
) -> None :
74
79
"""Initialize a CWLTestReport object."""
75
80
self .id = id
@@ -199,10 +204,9 @@ def generate_badges(
199
204
200
205
with open (f"{ badgedir } /{ t } .md" , "w" ) as out :
201
206
print (f"# `{ t } ` tests" , file = out )
202
-
203
207
print ("## List of passed tests" , file = out )
204
208
for e in npassed [t ]:
205
- base = f"[{ shortname (e .id )} ]({ e .entry } )"
209
+ base = f"[{ shortname (str ( e .id ) )} ]({ e .entry } )"
206
210
tool = f"[tool]({ e .tool } )"
207
211
if e .job :
208
212
arr = [tool , f"[job]({ e .job } )" ]
@@ -213,7 +217,7 @@ def generate_badges(
213
217
214
218
print ("## List of failed tests" , file = out )
215
219
for e in nfailures [t ]:
216
- base = f"[{ shortname (e .id )} ]({ e .entry } )"
220
+ base = f"[{ shortname (str ( e .id ) )} ]({ e .entry } )"
217
221
tool = f"[tool]({ e .tool } )"
218
222
if e .job :
219
223
arr = [tool , f"[job]({ e .job } )" ]
@@ -224,7 +228,7 @@ def generate_badges(
224
228
225
229
print ("## List of unsupported tests" , file = out )
226
230
for e in nunsupported [t ]:
227
- base = f"[{ shortname (e .id )} ]({ e .entry } )"
231
+ base = f"[{ shortname (str ( e .id ) )} ]({ e .entry } )"
228
232
tool = f"[tool]({ e .tool } )"
229
233
if e .job :
230
234
arr = [tool , f"[job]({ e .job } )" ]
0 commit comments