@@ -99,6 +99,7 @@ def test_extract_organized_sections(self) -> None:
9999 "hine learning is also referred to as predictive analytics."
100100 ),
101101 },
102+ {"category" : "figure" , "text" : "" },
102103 ],
103104 [
104105 {"category" : "title" , "text" : "Recommendation: BUY" },
@@ -959,6 +960,21 @@ def test_extract_organized_sections(self) -> None:
959960 "type" : "TEXT" ,
960961 "uid" : "32" ,
961962 },
963+ {
964+ "children" : [],
965+ "content" : None ,
966+ "locations" : [
967+ {
968+ "height" : 0.01425 ,
969+ "page_number" : 0 ,
970+ "width" : 0.21622 ,
971+ "x" : 0.60002 ,
972+ "y" : 0.8388 ,
973+ }
974+ ],
975+ "type" : "FIGURE" ,
976+ "uid" : "33" ,
977+ },
962978 {
963979 "children" : [],
964980 "content" : "Recommendation: BUY" ,
@@ -972,7 +988,7 @@ def test_extract_organized_sections(self) -> None:
972988 }
973989 ],
974990 "type" : "TITLE" ,
975- "uid" : "33 " ,
991+ "uid" : "34 " ,
976992 },
977993 {
978994 "children" : [],
@@ -987,7 +1003,7 @@ def test_extract_organized_sections(self) -> None:
9871003 }
9881004 ],
9891005 "type" : "TEXT" ,
990- "uid" : "34 " ,
1006+ "uid" : "35 " ,
9911007 },
9921008 {
9931009 "children" : [],
@@ -1002,7 +1018,7 @@ def test_extract_organized_sections(self) -> None:
10021018 }
10031019 ],
10041020 "type" : "TEXT" ,
1005- "uid" : "35 " ,
1021+ "uid" : "36 " ,
10061022 },
10071023 {
10081024 "children" : [],
@@ -1017,7 +1033,7 @@ def test_extract_organized_sections(self) -> None:
10171033 }
10181034 ],
10191035 "type" : "TEXT" ,
1020- "uid" : "36 " ,
1036+ "uid" : "37 " ,
10211037 },
10221038 ],
10231039 "content" : None ,
@@ -1878,6 +1894,21 @@ def test_extract_organized_sections(self) -> None:
18781894 "type" : "TEXT" ,
18791895 "uid" : "32" ,
18801896 },
1897+ {
1898+ "children" : [],
1899+ "content" : None ,
1900+ "locations" : [
1901+ {
1902+ "height" : 0.01425 ,
1903+ "page_number" : 0 ,
1904+ "width" : 0.21622 ,
1905+ "x" : 0.60002 ,
1906+ "y" : 0.8388 ,
1907+ }
1908+ ],
1909+ "type" : "FIGURE" ,
1910+ "uid" : "33" ,
1911+ },
18811912 {
18821913 "children" : [],
18831914 "content" : "Recommendation: BUY" ,
@@ -1891,7 +1922,7 @@ def test_extract_organized_sections(self) -> None:
18911922 }
18921923 ],
18931924 "type" : "TITLE" ,
1894- "uid" : "33 " ,
1925+ "uid" : "34 " ,
18951926 },
18961927 ],
18971928 "content" : None ,
@@ -1975,6 +2006,7 @@ def test_extract_organized_sections(self) -> None:
19752006 "hine learning is also referred to as predictive analytics."
19762007 ),
19772008 },
2009+ {"category" : "figure" , "text" : "" },
19782010 ],
19792011 [{"category" : "title" , "text" : "Recommendation: BUY" }],
19802012 ]
0 commit comments