This commit is contained in:
@@ -184,10 +184,18 @@ def test_ppt_audit_history_shows_ppt_schedule_and_db_runs(client, monkeypatch):
|
||||
])
|
||||
monkeypatch.setattr(svc, 'get_defined_report_coverage', lambda **_kw: {
|
||||
'enabled': True,
|
||||
'items': [],
|
||||
'missing_report_types': [],
|
||||
'missing_count': 0,
|
||||
'ready_count': len(svc.DEFINED_REPORT_TYPES),
|
||||
'items': [{
|
||||
'key': 'daily',
|
||||
'label': '每日日報',
|
||||
'target_label': '2026/05/17',
|
||||
'ready': False,
|
||||
'status': 'missing',
|
||||
'status_label': '待排程補齊',
|
||||
'status_hint': '尚未找到符合定義的檔案或 DB 紀錄。',
|
||||
}],
|
||||
'missing_report_types': ['daily'],
|
||||
'missing_count': 1,
|
||||
'ready_count': len(svc.DEFINED_REPORT_TYPES) - 1,
|
||||
'total': len(svc.DEFINED_REPORT_TYPES),
|
||||
'last_run': None,
|
||||
'cadences': cadences,
|
||||
@@ -219,6 +227,9 @@ def test_ppt_audit_history_shows_ppt_schedule_and_db_runs(client, monkeypatch):
|
||||
assert '排程節奏' in html
|
||||
assert 'DB 寫入' in html
|
||||
assert '線上預覽' in html
|
||||
assert 'Action Queue' in html
|
||||
assert '接下來要處理的事' in html
|
||||
assert '待排程補齊' in html
|
||||
|
||||
|
||||
def test_ppt_audit_history_shows_recent_preview_workbench(client, monkeypatch, tmp_path):
|
||||
|
||||
Reference in New Issue
Block a user