Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Feb 14, 2025
1 parent 25ec87b commit 58bdfa5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_anchor.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def testFailingAnchor(self):

print(anchor_text)
print(len(anchor_text))
self.assertLess(len(anchor_text), 4000)
self.assertLessEqual(len(anchor_text), 4000)

def testEmptyAnchor(self):
local_pdf_path = os.path.join(os.path.dirname(__file__), "gnarly_pdfs", "tobacco_missed_tokens_pg1.pdf")
Expand All @@ -151,7 +151,7 @@ def testCannotLoad(self):

print(anchor_text)
print(len(anchor_text))
self.assertLess(len(anchor_text), 6000)
self.assertLessEqual(len(anchor_text), 6000)

@unittest.skip("TODO, this unit test still fails, the map text is too large.")
def testExcessiveMapAnchor(self):
Expand All @@ -161,7 +161,7 @@ def testExcessiveMapAnchor(self):

print(anchor_text)
print(len(anchor_text))
self.assertLess(len(anchor_text), 4000)
self.assertLessEqual(len(anchor_text), 4000)

def testKyleOnePageAnchors1(self):
local_pdf_path = os.path.join(os.path.dirname(__file__), "gnarly_pdfs", "dolma-page-1.pdf")
Expand All @@ -170,7 +170,7 @@ def testKyleOnePageAnchors1(self):

print(anchor_text)
print(len(anchor_text))
self.assertLess(len(anchor_text), 6000)
self.assertLessEqual(len(anchor_text), 6000)

def testKyleOnePageAnchors2(self):
local_pdf_path = os.path.join(os.path.dirname(__file__), "gnarly_pdfs", "olmo-page-1.pdf")
Expand All @@ -179,7 +179,7 @@ def testKyleOnePageAnchors2(self):

print(anchor_text)
print(len(anchor_text))
self.assertLess(len(anchor_text), 6000)
self.assertLessEqual(len(anchor_text), 6000)


class BuildSilverTest(unittest.TestCase):
Expand Down

0 comments on commit 58bdfa5

Please sign in to comment.