SIENTIAPDE-1579: Fix SientiaMlException propagation in ModelServing.search_runs_by_name to correctly raise the exception with its message, resolving a TypeError. Enhance training test script to support scenario-specific CSV files for different test cases. Update search_runs_by_name return type hint and apply minor code formatting.

This commit is contained in:
Bruno Domingues
2026-02-19 21:13:41 -03:00
parent f952647cf6
commit 41c4490cad
5 changed files with 56 additions and 33 deletions

View File

@@ -35,9 +35,7 @@ def validate_frontend_date_format(fmt: str | None) -> None:
return
if fmt not in ALLOWED_FRONTEND_DATE_FORMATS:
allowed = ', '.join(sorted(ALLOWED_FRONTEND_DATE_FORMATS))
raise ValueError(
f'Invalid date_format "{fmt}". Allowed formats: {allowed}'
)
raise ValueError(f'Invalid date_format "{fmt}". Allowed formats: {allowed}')
def _frontend_date_format_to_strftime(fmt: str | None) -> str | None: