Skip to content

Commit f0f8d8d

Browse files
committed
Adjusted tests
1 parent 07ccf46 commit f0f8d8d

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

test_unstructured/partition/html/test_html_to_ontology_parsing.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -355,13 +355,13 @@ def test_broken_cell_is_not_raising_error():
355355
expected_html = _wrap_with_body(
356356
"""
357357
<div class="Page">
358-
<table class="Table">
359-
<tbody class="TableBody">
360-
<tr class="TableRow">
361-
<td class="TableCell" tablecell&quot;="">
358+
<table>
359+
<tbody>
360+
<tr>
361+
<td tablecell&quot;="">
362362
83.64 GiB
363363
</td>
364-
<th class="TableCellHeader" rowspan="2">
364+
<th rowspan="2">
365365
Fair Value
366366
</th>
367367
</tr>
@@ -405,13 +405,13 @@ def test_table():
405405
expected_html = _wrap_with_body(
406406
"""
407407
<div class="Page">
408-
<table class="Table">
409-
<tbody class="TableBody">
410-
<tr class="TableRow">
411-
<td class="TableCell">
408+
<table>
409+
<tbody>
410+
<tr>
411+
<td>
412412
Fair Value1
413413
</td>
414-
<th class="TableCellHeader" rowspan="2">
414+
<th rowspan="2">
415415
Fair Value2
416416
</th>
417417
</tr>
@@ -466,23 +466,23 @@ def test_table_and_time():
466466
expected_html = _wrap_with_body(
467467
"""
468468
<div class="Page">
469-
<table class="Table">
470-
<thead class='TableHeader'>
471-
<tr class="TableRow">
472-
<th class="TableCellHeader" colspan="6">
469+
<table>
470+
<thead>
471+
<tr>
472+
<th colspan="6">
473473
Carrying Value
474474
</th>
475475
</tr>
476476
</thead>
477-
<tbody class='TableBody'>
478-
<tr class="TableRow">
479-
<td class="TableCell" colspan="5">
480-
<time class="CalendarDate">
477+
<tbody>
478+
<tr>
479+
<td colspan="5">
480+
<time>
481481
June 30, 2023
482482
</time>
483483
</td>
484-
<td class="TableCell">
485-
<span class="Currency">
484+
<td>
485+
<span>
486486
$—
487487
</span>
488488
</td>

test_unstructured/partition/html/test_html_to_unstructured_and_back_parsing.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,13 @@ def test_table():
324324
detection_origin="vlm_partitioner",
325325
element_id="2",
326326
metadata=ElementMetadata(
327-
text_as_html='<table class="Table" id="2"> '
328-
'<tbody class="TableBody" id="3"> '
329-
'<tr class="TableRow" id="4"> '
330-
'<td class="TableCell" id="5">'
327+
text_as_html="<table> "
328+
"<tbody> "
329+
"<tr> "
330+
"<td>"
331331
"Fair Value1 "
332332
"</td>"
333-
'<th class="TableCellHeader" rowspan="2" id="6">'
333+
'<th rowspan="2">'
334334
"Fair Value2 "
335335
"</th></tr></tbody></table>",
336336
parent_id="1",

0 commit comments

Comments
 (0)