File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -268,9 +268,12 @@ def render_mds(overwrite_previous, subfolder="docs"):
268
268
pytest_details = "Pytest failed"
269
269
duration = "Failed."
270
270
else :
271
- resolved = ("failed" not in pytest_info ["summary" ]) or (
272
- pytest_info ["summary" ]["failed" ] == 0
273
- )
271
+ resolved = False
272
+ if "passed" in pytest_info ["summary" ]:
273
+ if "skipped" in pytest_info ["summary" ]:
274
+ resolved = pytest_info ["summary" ]["passed" ] + pytest_info ["summary" ]["skipped" ] == pytest_info ["summary" ]["total" ]
275
+ else :
276
+ resolved = pytest_info ["summary" ]["passed" ] == pytest_info ["summary" ]["total" ]
274
277
if write_submission :
275
278
submission_repo_page += pytest_summary_table_header .format (
276
279
pytest_group = pytest_group
@@ -296,7 +299,7 @@ def render_mds(overwrite_previous, subfolder="docs"):
296
299
total_duration += pytest_info ["duration" ]
297
300
repos_resolved += int (resolved )
298
301
if write_submission :
299
- pytest_details = f"{ pytest_info ['summary' ]['passed' ]} / { pytest_info ['summary' ]['collected ' ]} "
302
+ pytest_details = f"{ pytest_info ['summary' ]['passed' ]} / { pytest_info ['summary' ]['total ' ]} "
300
303
duration = f"{ pytest_info ['duration' ]:.2f} "
301
304
break
302
305
if write_submission :
You can’t perform that action at this time.
0 commit comments