test: Increase coverage for multi-column headers

This commit is contained in:
TrisNol
2023-10-21 12:02:50 +02:00
parent 3ba8c0abea
commit 9edf5b1dce

View File

@ -163,7 +163,23 @@ def test_extract_tables_from_reports() -> None:
def test_parse_tables_to_kpis() -> None:
report = """
<table>
<table class="std_table">
<tr>
<th>Position</th>
</tr>
<tr>
<td>a) Umlaufvermögen</td>
</tr>
</table>
<table class="std_table">
<tr>
<th>Position</th>
<th>Test</th>
</tr>
<tr>
<td>4711</td>
<td>4711</td>
</tr>
</table>
<div>
Möge die Macht mir dir sein
@ -199,6 +215,24 @@ def test_parse_tables_to_kpis() -> None:
<td>4711</td>
</tr>
</table>
<table class="std_table">
<thead>
<tr>
<th>Position</th>
<th>Betrag in</th>
</tr>
<tr>
<th>Hallo</th>
<th>€</th>
</tr>
</thead>
<tbody>
<tr>
<td>I. Schulden</td>
<td>0,12</td>
</tr>
</tbody>
</table>
</div>
"""
ba = Bundesanzeiger()
@ -207,4 +241,5 @@ def test_parse_tables_to_kpis() -> None:
"Umlaufvermögen": 12130.0,
"EBIT": 1123000.0,
"Jahresüberschuss": 4130120.0,
"Schulden": 0.12,
}