ray/release/alerts/default.py
Balaji Veeramani 7f1bacc7dc
[CI] Format Python code with Black (#21975)
See #21316 and #21311 for the motivation behind these changes.
2022-01-29 18:41:57 -08:00

21 lines
400 B
Python

import datetime
from typing import Dict, Optional
def handle_result(
created_on: datetime.datetime,
category: str,
test_suite: str,
test_name: str,
status: str,
results: Dict,
artifacts: Dict,
last_logs: str,
team: str,
) -> Optional[str]:
if not status == "finished":
return f"Test script did not finish successfully ({status})."
return None