Neue Positionen für die Kreisel im Test festgelegt. Weniger Überlappungen und leichter durch einen Blick von oben und der seite zu prüfen.

This commit is contained in:
2026-06-19 21:06:02 +02:00
parent 8d32102531
commit 2d6cb788cf
2 changed files with 66 additions and 69 deletions
+2 -2
View File
@@ -80,7 +80,7 @@ class TestKreiselGeometry:
"""Anzahl KR_-Bloecke muss Testfall-Anzahl entsprechen."""
msp = kreisel_dxf.modelspace()
kr_inserts = [e for e in msp if e.dxftype() == "INSERT"
and e.dxf.name.startswith("KR_")]
and e.dxf.name.startswith("KREISEL_")]
expected_count = len(kreisel_testdata)
assert len(kr_inserts) >= expected_count, \
f"Erwartet mind. {expected_count} KR_-Bloecke, gefunden: {len(kr_inserts)}"
@@ -88,7 +88,7 @@ class TestKreiselGeometry:
def test_circle_radius(self, kreisel_dxf):
"""AN8/SP8 Kreise in KR_-Bloecken muessen Radius 400mm haben."""
for block in kreisel_dxf.blocks:
if not block.name.startswith("KR_"):
if not block.name.startswith("KREISEL_"):
continue
circles = [e for e in block if e.dxftype() == "CIRCLE"]
for c in circles: