ICSAC commited on
Commit
e6b490d
Β·
1 Parent(s): 55821ba

test_citation_identity: the variant-title check matches the rendered label

Browse files
intake/scripts/test_citation_identity.py CHANGED
@@ -211,7 +211,7 @@ try:
211
  check("β€” REAL." not in rep, "no line says REAL any more")
212
  check("A. Author et al. 2025b** β€” CONFIRMED" in rep and "Hollis 1972** β€” CONFIRMED" in rep, "confirmed lines")
213
  check("MATCHED" in rep and "existence check" in rep, "the fuzzy evidence level is explained")
214
- check("Ferreira and Lund 2026** β€” CONFIRMED" in rep and "translated or variant title" in rep, "the variant title is shown on the confirmed line")
215
  cv.save_citation_report("ICSAC-SUB-TEST-1", rep_in, rep)
216
  import review
217
  line = review._citation_header_line("ICSAC-SUB-TEST-1")
 
211
  check("β€” REAL." not in rep, "no line says REAL any more")
212
  check("A. Author et al. 2025b** β€” CONFIRMED" in rep and "Hollis 1972** β€” CONFIRMED" in rep, "confirmed lines")
213
  check("MATCHED" in rep and "existence check" in rep, "the fuzzy evidence level is explained")
214
+ check(re.search(r"Ferreira[^\n]*β€” CONFIRMED\.[^\n]*translated or variant title", rep) is not None, "the variant title is shown on the confirmed line")
215
  cv.save_citation_report("ICSAC-SUB-TEST-1", rep_in, rep)
216
  import review
217
  line = review._citation_header_line("ICSAC-SUB-TEST-1")