Private
Public Access
was called rest
This commit is contained in:
@@ -119,9 +119,9 @@ def _format_pytest_line(line: str) -> str | None:
|
|||||||
if " ERROR" in stripped: return _c(stripped, _C.BOLD_RED)
|
if " ERROR" in stripped: return _c(stripped, _C.BOLD_RED)
|
||||||
if stripped.startswith(("PASSED", "FAILED", "ERROR")) and "::" in stripped:
|
if stripped.startswith(("PASSED", "FAILED", "ERROR")) and "::" in stripped:
|
||||||
status = stripped.split()[0]
|
status = stripped.split()[0]
|
||||||
res = stripped[len(status):]
|
rest = stripped[len(status):]
|
||||||
if status == "PASSED": return _c(f"{status}{res}", _C.GREEN)
|
if status == "PASSED": return _c(f"{status}{rest}", _C.GREEN)
|
||||||
return _c(f"{status}{res}", _C.BOLD_RED)
|
return _c(f"{status}{rest}", _C.BOLD_RED)
|
||||||
if stripped.startswith(("passed", "failed", "error")) and " in " in stripped and stripped.endswith("s"):
|
if stripped.startswith(("passed", "failed", "error")) and " in " in stripped and stripped.endswith("s"):
|
||||||
return _c(stripped, _C.BOLD)
|
return _c(stripped, _C.BOLD)
|
||||||
return stripped
|
return stripped
|
||||||
|
|||||||
Reference in New Issue
Block a user