Private
Public Access
oops
This commit is contained in:
@@ -120,8 +120,8 @@ def _format_pytest_line(line: str) -> str | None:
|
|||||||
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):]
|
res = stripped[len(status):]
|
||||||
if status == "PASSED": return _c(f"{status}{rest}", _C.GREEN)
|
if status == "PASSED": return _c(f"{status}{res}", _C.GREEN)
|
||||||
return _c(f"{status}{rest}", _C.BOLD_RED)
|
return _c(f"{status}{res}", _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