- moved sample folder to tests

- updated tests dep
This commit is contained in:
ari committed 2018-12-22 22:49:02 -05:00
1 parent bf46dee422
commit 0590d8c8f9
16 files changed
+8 -10

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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):
+1 -1
View File
@@ -8,7 +8,7 @@ import nose
import logging
from pdfmajor.interpreter.PDFStream.ccitt import CCITTG4Parser
from pdfmajor.parser.PDFStream.ccitt import CCITTG4Parser
## Test cases
##
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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
##