- moved sample folder to tests
- updated tests dep
This commit is contained in:
1 parent
bf46dee422
commit
0590d8c8f9
16 files changed
+8
-10
No files matched your search
+1
-2
@@ -9,6 +9,5 @@ tests/*.xml
|
||||
tests/*.txt
|
||||
.idea/
|
||||
.vscode
|
||||
samples/output
|
||||
samples/pdfmajor
|
||||
tests/samples/output
|
||||
**__pycache**
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
../pdfmajor
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -13,8 +13,8 @@ def rel_path(*arg: List[str]) -> str:
|
||||
return os.path.normpath(os.path.join(os.path.dirname(__file__), *arg))
|
||||
|
||||
EXTS = ['json','xml','html']
|
||||
INPUT_FOLDER = rel_path("./pdf")
|
||||
OUTPUT_FOLDER = rel_path(f"./output/")
|
||||
INPUT_FOLDER = rel_path("./samples/pdf")
|
||||
OUTPUT_FOLDER = rel_path(f"./samples/output/")
|
||||
|
||||
if not os.path.exists(OUTPUT_FOLDER):
|
||||
os.makedirs(OUTPUT_FOLDER)
|
||||
|
||||
@@ -8,8 +8,8 @@ from pdfmajor.interpreter.commands import LTCharBlock, LTChar
|
||||
|
||||
CUR_PATH = os.path.dirname(os.path.dirname(__file__))
|
||||
FILE_NAME = os.path.join(
|
||||
"../" if CUR_PATH == "" else CUR_PATH,
|
||||
"samples/pdf/long-tables.pdf"
|
||||
CUR_PATH,
|
||||
"samples/pdf/tables.pdf"
|
||||
)
|
||||
|
||||
for page in PDFInterpreter(FILE_NAME, debug_level=logging.INFO):
|
||||
|
||||
@@ -8,7 +8,7 @@ import nose
|
||||
|
||||
import logging
|
||||
|
||||
from pdfmajor.interpreter.PDFStream.ccitt import CCITTG4Parser
|
||||
from pdfmajor.parser.PDFStream.ccitt import CCITTG4Parser
|
||||
|
||||
## Test cases
|
||||
##
|
||||
|
||||
@@ -8,7 +8,7 @@ import nose
|
||||
#test of various compression/encoding modules (previously in doctests):
|
||||
from pdfmajor.utils.ascii85 import ascii85decode, asciihexdecode
|
||||
from pdfmajor.utils.lzw import LZWDecoder, lzwdecode
|
||||
from pdfmajor.interpreter.PDFStream import rldecode
|
||||
from pdfmajor.parser.PDFStream import rldecode
|
||||
|
||||
import binascii
|
||||
def hex(b): return binascii.hexlify(b) #encode('hex')
|
||||
|
||||
@@ -8,7 +8,7 @@ import nose
|
||||
|
||||
import logging
|
||||
|
||||
from pdfmajor.interpreter.PSStackParser import KWD, LIT, PSBaseParser, PSEOF, PSStackParser
|
||||
from pdfmajor.parser.PSStackParser import KWD, LIT, PSBaseParser, PSEOF, PSStackParser
|
||||
|
||||
## Simplistic Test cases
|
||||
##
|
||||
|
||||
Reference in new issue
Block a user