Retry transient metadata requests and handle legacy empty HTML attributes
Metadata integrity checks / metadata (push) Successful in 7s
Metadata integrity checks / metadata (push) Successful in 7s
This commit is contained in:
@@ -9,6 +9,11 @@ from collect_proceedings import paper_links,parse_paper
|
||||
|
||||
|
||||
class ProceedingsTests(unittest.TestCase):
|
||||
def test_legacy_empty_class_attribute_does_not_break_a_paper(self):
|
||||
html='<div class>Legacy formatting</div><h1>Paper</h1><p class="paper-abstract">Real abstract.</p>'
|
||||
row=parse_paper(html,'https://proceedings.neurips.cc/paper/2000/hash/a-Abstract.html','neurips',2000,'https://proceedings.neurips.cc/paper/2000')
|
||||
self.assertEqual(row['abstract'],'Real abstract.')
|
||||
|
||||
def test_colm_nested_abstract_and_citation_authors(self):
|
||||
html='''<meta name="citation_title" content="A paper"><meta name="citation_author" content="Doe, Jane"><section><h2>Abstract</h2><p class="paper-abstract"><p>Real <em>abstract</em> text.</p></p></section><h4>Name Change Policy</h4><p>Do not ingest footer.</p>'''
|
||||
row=parse_paper(html,'https://proceedings.colm.cc/paper_files/paper/2024/hash/a-Abstract-Conference.html','colm',2024,'https://proceedings.colm.cc/paper_files/paper/2024')
|
||||
|
||||
Reference in New Issue
Block a user