Private
Public Access
0
0

was called rest

This commit is contained in:
2026-06-15 20:10:18 -04:00
parent 48b47d250c
commit 125a226525
+3 -3
View File
@@ -119,9 +119,9 @@ def _format_pytest_line(line: str) -> str | None:
if " ERROR" in stripped: return _c(stripped, _C.BOLD_RED)
if stripped.startswith(("PASSED", "FAILED", "ERROR")) and "::" in stripped:
status = stripped.split()[0]
res = stripped[len(status):]
if status == "PASSED": return _c(f"{status}{res}", _C.GREEN)
return _c(f"{status}{res}", _C.BOLD_RED)
rest = stripped[len(status):]
if status == "PASSED": return _c(f"{status}{rest}", _C.GREEN)
return _c(f"{status}{rest}", _C.BOLD_RED)
if stripped.startswith(("passed", "failed", "error")) and " in " in stripped and stripped.endswith("s"):
return _c(stripped, _C.BOLD)
return stripped