Skip to content

Commit bae65ce

Browse files
committed
fix resolution check
1 parent 9a83c64 commit bae65ce

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/render_submissions.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,12 @@ def render_mds(overwrite_previous, subfolder="docs"):
268268
pytest_details = "Pytest failed"
269269
duration = "Failed."
270270
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"]
274277
if write_submission:
275278
submission_repo_page += pytest_summary_table_header.format(
276279
pytest_group=pytest_group
@@ -296,7 +299,7 @@ def render_mds(overwrite_previous, subfolder="docs"):
296299
total_duration += pytest_info["duration"]
297300
repos_resolved += int(resolved)
298301
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']}"
300303
duration = f"{pytest_info['duration']:.2f}"
301304
break
302305
if write_submission:

0 commit comments

Comments
 (0)