Skip to content

Commit 1a36837

Browse files
committed
100% last time
1 parent 105ea60 commit 1a36837

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

app/tests/test_read_docs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
def test_read_docx():
66
file_processor = FileProcessor()
7-
base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../data/input"))
8-
file_path = os.path.join(base_dir, "fanatyk.docx")
9-
with open(file_path, "rb") as file:
7+
with open("/app/data/input/fanatyk.docx", "rb") as file:
108
file_processor.file = file
119
file_processor.file_type = ".txt"
1210
content = file_processor._read_docx

app/tests/test_read_pdf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
def test_read_pdf():
77
file_processor = FileProcessor()
8-
base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../data/input"))
9-
file_path = os.path.join(base_dir, "fanatyk.pdf")
10-
with open(file_path, "rb") as file:
8+
with open("/app/data/input/fanatyk.pdf", "rb") as file:
119
file_processor.file = file
1210
file_processor.file_type = ".pdf"
1311
content = file_processor._read_pdf()

0 commit comments

Comments
 (0)