Restore pytest execution and stabilize tests

This commit is contained in:
codex
2026-07-02 21:34:44 +02:00
parent 2a9a3e690f
commit 0a683aea5a
3 changed files with 23 additions and 5 deletions

View File

@@ -33,6 +33,8 @@ def _serialize(value: Any) -> Any:
return str(value)
if hasattr(value, "__dataclass_fields__"):
return {key: _serialize(getattr(value, key)) for key in value.__dataclass_fields__}
if isinstance(value, tuple):
return [_serialize(item) for item in value]
if isinstance(value, list):
return [_serialize(item) for item in value]
if isinstance(value, dict):
@@ -135,4 +137,4 @@ def build_dashboard_payload(data_dir: Path | None = None, period: str | None = N
def payload_json(data_dir: Path | None = None, period: str | None = None) -> str:
return json.dumps(build_dashboard_payload(data_dir, period), indent=2)
return json.dumps(build_dashboard_payload(data_dir, period), indent=2)