feat(platform): close AI expense value loop
Add tenant-safe value, telemetry, connector, commercial, and production-readiness foundations.
This commit is contained in:
@@ -32,7 +32,10 @@ def test_digital_employee_reminder_task_generates_actionable_report() -> None:
|
||||
with build_session() as db:
|
||||
_seed_reminder_data(db, now)
|
||||
|
||||
result = DigitalEmployeeReminderTaskService(db).refresh_reminders(now=now)
|
||||
result = DigitalEmployeeReminderTaskService(
|
||||
db,
|
||||
tenant_id="default",
|
||||
).refresh_reminders(now=now)
|
||||
|
||||
summary = result["summary"]
|
||||
report = result["report"]
|
||||
@@ -56,7 +59,7 @@ def test_digital_employee_reminder_task_generates_actionable_report() -> None:
|
||||
"reimbursement_overdue",
|
||||
}.issubset(reminder_types)
|
||||
|
||||
dashboard = DigitalEmployeeDashboardService(db).build_dashboard(days=7)
|
||||
dashboard = DigitalEmployeeDashboardService(db).build_dashboard(days=7, now=now)
|
||||
assert dashboard.totals["reminders"] >= 4
|
||||
assert dashboard.totals["businessOutputs"] >= 4
|
||||
assert dashboard.task_distribution[0]["taskType"] == "digital_employee_reminder_scan"
|
||||
|
||||
Reference in New Issue
Block a user