Varioförderer Masse geändert

This commit is contained in:
2026-07-27 22:16:36 +02:00
parent e974e63c40
commit cee2a81b55
3 changed files with 58 additions and 43 deletions
+6 -6
View File
@@ -93,7 +93,8 @@ class TestMubeaResults:
f'{t["id"]}: Block "{r["block_name"]}" ohne Praefix "{prefix}"'
def test_vario_winkel_und_split(self, mubea_testdata, mubea_results):
"""Vario: VF_WINKEL entspricht Vorgabe, L_GF-Split = 500/4230 (Meter)."""
"""Vario: VF_WINKEL entspricht Vorgabe, L_GF-Vorlauf entspricht L_GF1-Ziel,
Vorlauf+Nachlauf (L_GF_m) ergeben zusammen die aus deltaL geloeste Gesamtlaenge."""
by_id = {r["test_id"]: r for r in mubea_results}
for t in mubea_testdata:
if not _is_vario(t):
@@ -106,15 +107,14 @@ class TestMubeaResults:
if "winkel" in t:
assert attrs.get("VF_WINKEL") == str(t["winkel"]), \
f'{t["test_id"]}: VF_WINKEL ist={attrs.get("VF_WINKEL")}, erwartet={t["winkel"]}'
# L_GF_m = "vorne,hinten" in Metern -> 500mm/4230mm = "0.500,4.230"
if "L_GF1" in t and "L_GF2" in t and "L_GF_m" in attrs:
# L_GF_m = "vorne,hinten" in Metern; L_GF1 (Vorlauf-Ziel) muss exakt
# getroffen werden, L_GF2 (Nachlauf) ist der aus deltaL geloeste Rest.
if "L_GF1" in t and "L_GF_m" in attrs:
teile = attrs["L_GF_m"].split(",")
assert len(teile) == 2, f'{t["test_id"]}: L_GF_m Format "{attrs["L_GF_m"]}"'
v, h = float(teile[0]) * 1000.0, float(teile[1]) * 1000.0
v = float(teile[0]) * 1000.0
assert abs(v - t["L_GF1"]) < 1.0, \
f'{t["test_id"]}: L_GF1 vorn ist={v}, erwartet={t["L_GF1"]}'
assert abs(h - t["L_GF2"]) < 1.0, \
f'{t["test_id"]}: L_GF2 hinten ist={h}, erwartet={t["L_GF2"]}'
# ============================================================