This commit is contained in:
@@ -215,6 +215,10 @@ def test_ppt_audit_history_shows_ppt_schedule_and_db_runs(client, monkeypatch):
|
||||
assert text in html
|
||||
assert 'ppt_generation_runs' in html
|
||||
assert '每日日報' in html
|
||||
assert 'Pipeline Health' in html
|
||||
assert '排程節奏' in html
|
||||
assert 'DB 寫入' in html
|
||||
assert '線上預覽' in html
|
||||
|
||||
|
||||
def test_ppt_audit_history_shows_recent_preview_workbench(client, monkeypatch, tmp_path):
|
||||
|
||||
@@ -100,8 +100,12 @@ def test_coverage_marks_ready_from_database(monkeypatch):
|
||||
|
||||
by_key = {item["key"]: item for item in result["items"]}
|
||||
assert by_key["daily"]["ready"] is True
|
||||
assert by_key["daily"]["status"] == "ready"
|
||||
assert by_key["daily"]["status_label"] == "目標已產生"
|
||||
assert by_key["monthly"]["ready"] is True
|
||||
assert by_key["weekly"]["ready"] is False
|
||||
assert by_key["weekly"]["status"] == "missing"
|
||||
assert by_key["weekly"]["status_label"] == "待排程補齊"
|
||||
assert result["missing_count"] == 1
|
||||
|
||||
|
||||
@@ -145,6 +149,9 @@ def test_schedule_cadence_status_exposes_all_periodic_contracts():
|
||||
assert by_key["weekly"]["report_types"] == ["weekly", "market_intel"]
|
||||
assert by_key["weekly"]["ready_count"] == 1
|
||||
assert by_key["weekly"]["missing_report_types"] == ["weekly"]
|
||||
assert by_key["weekly"]["missing_report_labels"] == ["週報"]
|
||||
assert by_key["weekly"]["status_label"] == "已完成 1/2"
|
||||
assert by_key["weekly"]["coverage_text"] == "1/2"
|
||||
assert "TTM 滾動 12 月" in by_key["monthly"]["report_labels"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user