feat: 支持独立图片模型和按日期重生成日报
This commit is contained in:
@ -57,3 +57,22 @@ def test_backfill_refreshes_only_tagged_reports_from_requested_date(tmp_path):
|
||||
assert has_missing_report_tag(tagged)
|
||||
assert has_missing_report_tag(later)
|
||||
assert not has_missing_report_tag(ordinary)
|
||||
|
||||
|
||||
def test_backfill_force_refreshes_all_daily_notes_from_requested_date(tmp_path):
|
||||
before = tmp_path / "2026-10-07.md"
|
||||
before.write_text("保留日报", encoding="utf-8")
|
||||
first = tmp_path / "2026-10-08.md"
|
||||
first.write_text("旧日报", encoding="utf-8")
|
||||
second = tmp_path / "2026-10-09.md"
|
||||
second.write_text("旧日报", encoding="utf-8")
|
||||
|
||||
days = list(missing_message_dates(
|
||||
date(2026, 10, 7),
|
||||
date(2026, 10, 9),
|
||||
lambda day: True,
|
||||
lambda day: tmp_path / f"{day.isoformat()}.md",
|
||||
daily_overwrite_from=date(2026, 10, 8),
|
||||
))
|
||||
|
||||
assert days == [date(2026, 10, 8), date(2026, 10, 9)]
|
||||
|
||||
Reference in New Issue
Block a user