mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
15 lines
528 B
Python
15 lines
528 B
Python
from __future__ import annotations
|
|
|
|
|
|
def test_sync_detects_derived_drift_without_failing_sync(tmp_path) -> None:
|
|
from paperforge.services.sync_service import summarize_ocr_version_actions
|
|
|
|
summary = summarize_ocr_version_actions(
|
|
papers=[
|
|
{"zotero_key": "A", "derived_stale": True, "raw_upgradable": False},
|
|
{"zotero_key": "B", "derived_stale": False, "raw_upgradable": True},
|
|
]
|
|
)
|
|
|
|
assert summary["derived_rebuild_count"] == 1
|
|
assert summary["raw_upgrade_count"] == 1
|