README-Spec: neuer Block AUTO:pruefstand in Fixture und erwarteter Blockliste

Die Pruefbatterie v2 fuehrt den README-Block AUTO:pruefstand ein; die Spec
kannte ihn nicht und meldete 'Marker fehlt'. Fixture und Erwartung decken
den Block jetzt ab (wird ersetzt, Rest der README bleibt zeichengleich).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 13:52:45 +01:00
co-authored by Claude Opus 5.5
parent 31a212b32b
commit 0fce7b6bb2
+8 -4
View File
@@ -51,6 +51,10 @@ alt echt
alt matrix
<!-- /AUTO:matrix -->
<!-- AUTO:pruefstand -->
alt pruefstand
<!-- /AUTO:pruefstand -->
## 4. Lecks (von Hand)
| a | b |
"""
@@ -148,11 +152,11 @@ class Fixture(unittest.TestCase):
class Marker(Fixture):
def test_nur_bloecke_ersetzt_rest_unveraendert(self):
g, w = self._lauf()
self.assertEqual(sorted(g), ["echtgeld", "gegner", "lbr", "matrix", "stand"])
self.assertEqual(sorted(g), ["echtgeld", "gegner", "lbr", "matrix", "pruefstand", "stand"])
self.assertEqual(w, [])
t = self._text()
for b, alt in (("gegner", "alte Tabelle"), ("lbr", "alt lbr"), ("echtgeld", "alt echt"),
("matrix", "alt matrix"), ("stand", "Stand: alt")):
("matrix", "alt matrix"), ("pruefstand", "alt pruefstand"), ("stand", "Stand: alt")):
self.assertNotEqual(R.block_lesen(t, b), alt)
self.assertIn("(automatisch), Quelle: Echtgeld `archiv/lauf/haende.jsonl`", R.block_lesen(t, "stand"))
# Simulation ausgemustert (22.11.): nur noch der Hinweis, keine Sim-Zahl
@@ -161,7 +165,7 @@ class Marker(Fixture):
self.assertNotIn("Sim heads-up", R.block_lesen(t, "matrix"))
# alles außerhalb der Blöcke ist Zeichen für Zeichen das Alte
def rest(s):
for b in ("stand", "gegner", "lbr", "echtgeld", "matrix"):
for b in ("stand", "gegner", "lbr", "echtgeld", "matrix", "pruefstand"):
s = s.replace(R.block_lesen(s, b), "<>")
return s
self.assertEqual(rest(t), rest(README))
@@ -246,7 +250,7 @@ class FehlendeDaten(Fixture):
def test_ohne_referenz_alles_ohne_warnung(self):
os.remove(os.path.join(self.mess, "REFERENZ.txt"))
g, w = self._lauf()
self.assertEqual(sorted(g), ["echtgeld", "gegner", "lbr", "matrix", "stand"])
self.assertEqual(sorted(g), ["echtgeld", "gegner", "lbr", "matrix", "pruefstand", "stand"])
self.assertFalse(any("REFERENZ" in x for x in w)) # die Sim-Referenz wird nicht mehr gelesen (22.11.)
def test_fehlender_marker_warnt(self):