File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55def 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
Original file line number Diff line number Diff line change 55
66def 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 ()
You can’t perform that action at this time.
0 commit comments