generated from coulomb/repo-seed
Restore pytest execution and stabilize tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user