Merged in optimization/tin_npi (pull request #790)

Optimization/tin npi

* updated signature page and added for tin  npi

* updated signature page

* removed print statements

* removed print statement

* updated test for extract signature page

* updated data type


Approved-by: Katon Minhas
This commit is contained in:
VenkataKrishna Reddy Avula
2025-11-26 17:21:44 +00:00
committed by Katon Minhas
parent 4334800fa3
commit 2482adb465
3 changed files with 44 additions and 32 deletions
+4 -1
View File
@@ -152,9 +152,12 @@ class TestStringUtils(unittest.TestCase):
result = string_utils.extract_signature_page(text_dict, "test.pdf")
self.assertIn("2", result)
self.assertEqual(result["2"], "This page has 2 signatures at the bottom")
text_dict = {"1": "Contract page 1", "2": "Signature page follows this section", "3": "Final signature authorization page"}
text_dict = {"1": "Contract page 1", "2": "In Witness Whereof", "3": "Final page"}
result = string_utils.extract_signature_page(text_dict, "test.pdf")
self.assertIn("2", result)
self.assertEqual(result["2"], "In Witness Whereof")
text_dict = {"1": "Contract page 1", "2": "Signature page follows this section", "3": "signature page"}
result = string_utils.extract_signature_page(text_dict, "test.pdf")
self.assertIn("3", result)
def test_extract_effective_date_pages(self):