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:
|
||||
status = stripped.split()[0]
|
||||
res = stripped[len(status):]
|
||||
if status == "PASSED": return _c(f"{status}{rest}", _C.GREEN)
|
||||
return _c(f"{status}{rest}", _C.BOLD_RED)
|
||||
if status == "PASSED": return _c(f"{status}{res}", _C.GREEN)
|
||||
return _c(f"{status}{res}", _C.BOLD_RED)
|
||||
if stripped.startswith(("passed", "failed", "error")) and " in " in stripped and stripped.endswith("s"):
|
||||
return _c(stripped, _C.BOLD)
|
||||
return stripped
|
||||
|
||||
Reference in New Issue
Block a user