Preserve explicit withdrawal and byte-exact AAMAS fixture evidence
Metadata integrity checks / metadata (push) Failing after 2m4s
Metadata integrity checks / metadata (push) Failing after 2m4s
This commit is contained in:
BIN
Binary file not shown.
+14
-2
@@ -39,8 +39,19 @@ class Aamas2026Tests(unittest.TestCase):
|
||||
for r in rows:
|
||||
self.assertIsNone(r['abstract'])
|
||||
self.assertEqual(r['identifiers'], {})
|
||||
self.assertEqual(r['status'], 'accepted')
|
||||
self.assertNotIn('decision_date', r)
|
||||
if r['external_id'] != '2026/p3178':
|
||||
self.assertEqual(r['status'], 'accepted')
|
||||
self.assertNotIn('decision_date', r)
|
||||
|
||||
def test_explicit_withdrawal_preserves_status_date_and_no_pdf(self):
|
||||
rows, _, _ = self.parse()
|
||||
row, = [r for r in rows if r['external_id'] == '2026/p3178']
|
||||
self.assertEqual(row['status'], 'withdrawn')
|
||||
self.assertEqual(row['decision_date'], '2026-06-08')
|
||||
self.assertEqual(row['raw_decision'], 'Withdrawn June 8, 2026')
|
||||
self.assertNotIn('paper_url', row['metadata'])
|
||||
self.assertEqual(row['metadata']['publication_state'], 'withdrawn')
|
||||
self.assertEqual(sum(r['status'] == 'accepted' for r in rows), 638)
|
||||
|
||||
def test_retraction_is_not_accepted_or_withdrawn_and_retains_date(self):
|
||||
rows, _, held = self.parse()
|
||||
@@ -85,6 +96,7 @@ class Aamas2026Tests(unittest.TestCase):
|
||||
root = Path(tmp)
|
||||
report = aamas.collect(2026, root/'out', snapshots=self.snapshots(root/'source'))
|
||||
self.assertEqual(report['records'], 639)
|
||||
self.assertEqual(report['status_counts'], {'accepted': 638, 'withdrawn': 1})
|
||||
self.assertEqual(len(report['files']), 6)
|
||||
self.assertEqual(len(report['held_publications']), 1)
|
||||
self.assertFalse(report['database_written'])
|
||||
|
||||
@@ -99,7 +99,7 @@ class AamasProceedingsTests(unittest.TestCase):
|
||||
aamas.collect(2012, root/'out', snapshots=source)
|
||||
self.assertFalse((root/'out/aamas-proceedings-2012.json').exists())
|
||||
with self.assertRaises(ValueError):
|
||||
aamas.collect(2026, root/'future', snapshots=source)
|
||||
aamas.collect(2027, root/'future', snapshots=source)
|
||||
self.assertFalse((root/'future').exists())
|
||||
|
||||
def test_ids_colliding_across_sections_do_not_produce_a_completed_collection(self):
|
||||
|
||||
Reference in New Issue
Block a user