feat(workflow): publish verified forecast controls and consolidated docs
Tests / test (push) Successful in 1m1s
Tests / test (push) Successful in 1m1s
Approved by Daniel Haefliger for develop and beta. Author dh_Agent, authenticated account dh. Preserve published battery, charging and overall Energy Pie changes. No deployment or plant control authorization.
This commit is contained in:
@@ -40,7 +40,12 @@ class ReleasePreflightTest(unittest.TestCase):
|
||||
self.assertIn('?mode=ro',text);self.assertNotIn('ALTER TABLE',text)
|
||||
def test_gui_labels_estimates_and_incomplete_features(self):
|
||||
text=(ROOT/'gui/netplan-v4.js').read_text()
|
||||
self.assertIn('SCHATTENBETRIEB',text)
|
||||
self.assertIn('Die Kurven zeigen berechnete Plaene, keine nachgewiesene Ausfuehrung',text)
|
||||
self.assertIn('Geraete- und Netzgrenzen behalten Vorrang',text)
|
||||
self.assertIn('Planempfang ist kein Ausfuehrungsnachweis',text)
|
||||
self.assertIn('kein Nachweis realisierter Einsparungen',text)
|
||||
self.assertIn('Planung mit geschaetzter Peakbasis',text)
|
||||
self.assertIn('kein Abrechnungsnachweis',text)
|
||||
self.assertIn('measurementPolicy',text)
|
||||
self.assertIn('erstellt vergleichbare Kosten-Replays',text)
|
||||
self.assertIn('keine vollstaendige Nachbildung laufender Neuoptimierungen',text)
|
||||
@@ -48,4 +53,15 @@ class ReleasePreflightTest(unittest.TestCase):
|
||||
self.assertIn('trainingCadence',text)
|
||||
self.assertIn('Restmonatsbewertung ist keine bereits bezahlte Peakfreigabe',text)
|
||||
|
||||
def test_gui_separates_planning_from_confirmed_manager_control(self):
|
||||
text=(ROOT/'gui/netplan-v4.js').read_text()
|
||||
self.assertIn('Betriebsstatus nicht bestaetigt',text)
|
||||
self.assertIn('workflow.controlActive && workflow.controlRequested && workflow.planningReady',text)
|
||||
self.assertIn('workflow.reportFresh !== true',text)
|
||||
self.assertIn('Date.parse(workflow.sourceFreshUntil) <= now',text)
|
||||
self.assertIn("state: 'interrupted'",text)
|
||||
self.assertIn('controlActive: false',text)
|
||||
self.assertIn('lokale Schutzpruefung bleibt erforderlich',text)
|
||||
self.assertIn("setTimeout(showWorkflow",text)
|
||||
|
||||
if __name__=='__main__':unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user