Unit test fix
parent
7b0ac03f8e
commit
6962c714f9
|
|
@ -2149,6 +2149,14 @@ data_stream_split_text = [
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# The stream algorithm excludes the string "Alphabetic Listing by type"
|
||||||
|
data_hybrid_split_text = []
|
||||||
|
data_hybrid_split_text.extend(data_stream_split_text)
|
||||||
|
data_hybrid_split_text[0] = [
|
||||||
|
'FEB', 'RUAR', 'Y 2014 M27 (BUS)', '',
|
||||||
|
'ALPHABETIC LISTING BY T', 'YPE', '', '', '', 'ABLPDM27'
|
||||||
|
]
|
||||||
|
|
||||||
data_stream_flag_size = [
|
data_stream_flag_size = [
|
||||||
[
|
[
|
||||||
"States",
|
"States",
|
||||||
|
|
|
||||||
|
|
@ -214,7 +214,7 @@ def test_hybrid_columns():
|
||||||
|
|
||||||
|
|
||||||
def test_hybrid_split_text():
|
def test_hybrid_split_text():
|
||||||
df = pd.DataFrame(data_stream_split_text)
|
df = pd.DataFrame(data_hybrid_split_text)
|
||||||
|
|
||||||
filename = os.path.join(testdir, "tabula/m27.pdf")
|
filename = os.path.join(testdir, "tabula/m27.pdf")
|
||||||
tables = camelot.read_pdf(
|
tables = camelot.read_pdf(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue