mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-21 21:33:55 +02:00
test: Increase coverage for multi-column headers
This commit is contained in:
@ -163,7 +163,23 @@ def test_extract_tables_from_reports() -> None:
|
|||||||
|
|
||||||
def test_parse_tables_to_kpis() -> None:
|
def test_parse_tables_to_kpis() -> None:
|
||||||
report = """
|
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>
|
</table>
|
||||||
<div>
|
<div>
|
||||||
Möge die Macht mir dir sein
|
Möge die Macht mir dir sein
|
||||||
@ -199,6 +215,24 @@ def test_parse_tables_to_kpis() -> None:
|
|||||||
<td>4711</td>
|
<td>4711</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</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>
|
</div>
|
||||||
"""
|
"""
|
||||||
ba = Bundesanzeiger()
|
ba = Bundesanzeiger()
|
||||||
@ -207,4 +241,5 @@ def test_parse_tables_to_kpis() -> None:
|
|||||||
"Umlaufvermögen": 12130.0,
|
"Umlaufvermögen": 12130.0,
|
||||||
"EBIT": 1123000.0,
|
"EBIT": 1123000.0,
|
||||||
"Jahresüberschuss": 4130120.0,
|
"Jahresüberschuss": 4130120.0,
|
||||||
|
"Schulden": 0.12,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user