核验学习与规划会议前身卷并补齐发现范围 #40

Merged
Zayden-Jung merged 2 commits from codex/historical-predecessors into main 2026-11-09 08:13:53 +00:00
Showing only changes of commit aa696bd7b5 - Show all commits
+5 -1
View File
@@ -8,6 +8,8 @@ from pathlib import Path
import sqlite3
import tempfile
import unittest
from types import SimpleNamespace
from unittest.mock import patch
from paper_atlas.collectors.dblp import catalogue, XML_SHA
from paper_atlas.collectors.dblp_records import collect, normalize_row
@@ -102,7 +104,9 @@ class HistoricalPredecessorTests(unittest.TestCase):
'snapshot_sha256': XML_SHA, 'candidate_sha256': hashlib.sha256(candidate.read_bytes()).hexdigest(),
'candidate_records': 1, 'candidate_family_counts': {'aips':1},
'record_types': {'proceedings':1,'inproceedings':1}}))
result = collect(db, root/'early', ['ICAPS'], candidates=candidate, through_year=1990)
# Tiny CI fixtures may live on tmpfs; production reserve is tested separately.
with patch('paper_atlas.collectors.dblp_records.shutil.disk_usage', return_value=SimpleNamespace(free=16*1024**3)):
result = collect(db, root/'early', ['ICAPS'], candidates=candidate, through_year=1990)
self.assertEqual((result['normalized_records'],result['files'][0]['venue']), (1,'EPS'))
for year, missing in [(1991,'ICAPS/ewsp'),(1997,'ICAPS/ecp')]:
out = root/str(year); out.mkdir(); sentinel=out/'previous.txt';sentinel.write_text('accepted previous output')