|
@@ -38,6 +38,13 @@ def test_ingdiba_pdf_file_to_text_loss_compensation():
|
|
with open(os.path.join(test_data_path, os.path.splitext(pdf_name)[0] + '.txt')) as text_file:
|
|
with open(os.path.join(test_data_path, os.path.splitext(pdf_name)[0] + '.txt')) as text_file:
|
|
assert dingguo.parser.ingdiba.ingdiba_pdf_file_to_text(pdf_file) == text_file.read().decode('utf-8')
|
|
assert dingguo.parser.ingdiba.ingdiba_pdf_file_to_text(pdf_file) == text_file.read().decode('utf-8')
|
|
|
|
|
|
|
|
+@pytest.mark.xfail(raises=IndexError)
|
|
|
|
+def test_ingdiba_pdf_file_to_text_loss_compensation_single_page():
|
|
|
|
+ pdf_name = 'ING-DiBa_Postbox_2016-04-28_Verlustausgleich.pdf'
|
|
|
|
+ with open(os.path.join(test_data_path, pdf_name)) as pdf_file:
|
|
|
|
+ with open(os.path.join(test_data_path, os.path.splitext(pdf_name)[0] + '.txt')) as text_file:
|
|
|
|
+ assert dingguo.parser.ingdiba.ingdiba_pdf_file_to_text(pdf_file) == text_file.read().decode('utf-8')
|
|
|
|
+
|
|
def test_ingdiba_pdf_file_to_text_dividend_distribution():
|
|
def test_ingdiba_pdf_file_to_text_dividend_distribution():
|
|
pdf_name = 'ING-DiBa_Postbox_2014-04-09_Jährl. Bestätigung Ausschüttung Fonds.pdf'
|
|
pdf_name = 'ING-DiBa_Postbox_2014-04-09_Jährl. Bestätigung Ausschüttung Fonds.pdf'
|
|
with open(os.path.join(test_data_path, pdf_name)) as pdf_file:
|
|
with open(os.path.join(test_data_path, pdf_name)) as pdf_file:
|