We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f3d259 commit 2d59a69Copy full SHA for 2d59a69
2 files changed
app/tests/test_read_docs.py
@@ -0,0 +1,10 @@
1
+import pytest
2
+from src.file_processor import FileProcessor
3
+
4
+def test_read_docx():
5
+ file_processor = FileProcessor()
6
+ with open("data/input/test.docx", "rb") as file:
7
+ file_processor.file = file
8
+ file_processor.file_type = ".txt"
9
+ content = file_processor._read_docx
10
+ assert len(content) > 0, "Your summarize is empty"
app/tests/test_read_pdf.py
@@ -0,0 +1,12 @@
+def test_read_pdf():
+ with open("data/input/fanatyk.pdf", "rb") as file:
+ file_processor.file_type = ".pdf"
+ content = file_processor._read_pdf()
11
12
0 commit comments