fix: Nebenpfade behalten Kontext – Gegenprobe, --von, --resolve, UNDERSTAND_RETRIES=-1
- UNDERSTAND_RETRIES=-1 (A/B-Arm der Verstehensstufe) stürzte seit dem Ablehnungstor ab - Unlösbar-Gegenprobe bekommt Verständnis, Datenprofil und Datendateien; ihre Lösung durchläuft dieselbe Abnahme (_assess_run) - --von pruefung behält Verständnis, Abbildungen und Datenprofil - --resolve überschreibt frühere Befunde nicht mehr (nur Zulässigkeit neu) - --daten wirkt auch mit --resolve und --von - Prüfung und Korrektur sehen das Datenprofil - Reparaturmeldung nennt alle Befundarten zugleich - Test der Balkenhöhe prüft die Höhe tatsächlich; unbenutzte Imports entfernt Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
8bd3c2e7e1
commit
3c4d2fb92c
1 changed files with 182 additions and 59 deletions
|
|
@ -1,4 +1,5 @@
|
|||
"""Inline-SVG-Diagramme: gültiges SVG, korrekte Geometrie, Einbindung in den Report."""
|
||||
import re
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import pytest
|
||||
|
|
@ -33,8 +34,12 @@ def test_bars_are_proportional_and_capped_in_thickness():
|
|||
widths = [float(d.split("H")[1].split(" ")[0].split(",")[0]) for d in
|
||||
[p.get("d") for p in parse(svg).findall(".//{http://www.w3.org/2000/svg}path")]]
|
||||
assert widths[0] > widths[1]
|
||||
heights = {float(p.get("d").split("V")[1].split(" ")[0]) for p in parse(svg).findall(".//{http://www.w3.org/2000/svg}path")}
|
||||
assert charts.BAR_HEIGHT <= 24
|
||||
# Balkenhöhe = unterer Rand (letztes „x,y“ vor „H… Z“) minus oberer Rand (Startpunkt „M x,y“)
|
||||
heights = set()
|
||||
for p in parse(svg).findall(".//{http://www.w3.org/2000/svg}path"):
|
||||
ys = [float(y) for y in re.findall(r"[\d.]+,([\d.]+)", p.get("d"))]
|
||||
heights.add(max(ys) - min(ys))
|
||||
assert heights == {float(charts.BAR_HEIGHT)} and charts.BAR_HEIGHT <= 24
|
||||
|
||||
|
||||
def test_negative_values_use_the_other_colour_role():
|
||||
|
|
|
|||
Loading…
Reference in a new issue