Add authoritative ACL metadata and protect publication identities
Metadata integrity checks / metadata (push) Successful in 5s

This commit is contained in:
2026-11-06 12:35:15 +08:00
parent ad9967c1b2
commit adb4bf8f27
12 changed files with 270 additions and 10 deletions
+12
View File
@@ -9,6 +9,18 @@ from index_core import Store
class QueryTests(unittest.TestCase):
def test_joint_conference_alias_does_not_duplicate_submission(self):
with tempfile.TemporaryDirectory() as tmp:
db=Path(tmp)/'papers.sqlite';store=Store(db);self.addCleanup(store.conn.close)
paper,record=store.record('acl_anthology','paper1','https://example.org/1','Joint event paper','Abstract',[])
store.decision(paper,record,'COLING+LREC',2024,'main','paper1','https://example.org/1','accepted','official XML',['COLING','LREC'])
store.conn.commit()
for venue in ('COLING','LREC'):
command=[sys.executable,'-B',str(Path(__file__).with_name('query.py')),'--db',str(db),'--venue',venue,'--track','main']
rows=json.loads(subprocess.run(command,check=True,capture_output=True,text=True).stdout)
self.assertEqual([r['id'] for r in rows],[paper])
self.assertEqual(store.conn.execute('SELECT count(*) FROM submissions').fetchone()[0],1)
def test_venue_filter_is_case_insensitive_and_uses_latest_decision(self):
with tempfile.TemporaryDirectory() as tmp:
db=Path(tmp)/'papers.sqlite'