File size: 793 Bytes
8b1e853
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import unittest
import os
from ..data.preprocessing.ingest_documents import PDFProcessor

class TestIngestDocuments(unittest.TestCase):
    def test_ingest_documents(self):
        file = os.path.join(os.path.dirname(__file__), "../data", "combined_forms", "ACTC-Patient-Packet.pdf")
        print(file)
        processor = PDFProcessor(file)
        output = processor.extract_questions()
        output = [message.content for message in output]
        print('********output********', output)
        #results = ingest_documents.invoke({"text":"test"})
        #self.assertEqual(results, "test")
    def test_create_questions(self):
        file = os.path.join(os.path.dirname(__file__), "../data", "combined_forms", "ACTC-Patient-Packet.pdf")

if __name__ == "__main__":
    unittest.main()