cp adapted to 2026 poweron 2
This commit is contained in:
parent
4a60086c80
commit
ebc4b2a080
88 changed files with 176 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Generate tenant-dossier.pdf for neutralization demo. Run: python _generateTenantDossierPdf.py
|
"""Generate tenant-dossier.pdf for neutralization demo. Run: python _generateTenantDossierPdf.py
|
||||||
|
|
||||||
Uses ReportLab so the PDF opens reliably in all viewers (stdlib-only PDFs are fragile).
|
Uses ReportLab so the PDF opens reliably in all viewers (stdlib-only PDFs are fragile).
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Generate the 3 fictitious PWG scan PDFs used by the pilot demo.
|
"""Generate the 3 fictitious PWG scan PDFs used by the pilot demo.
|
||||||
|
|
||||||
Run: python _generateScans.py
|
Run: python _generateScans.py
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
ÖREB WFS Connector
|
ÖREB WFS Connector
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Swiss Topo MapServer Connector (Simplified)
|
Swiss Topo MapServer Connector (Simplified)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Swiss Parcel (Liegenschaften) Connector
|
Swiss Parcel (Liegenschaften) Connector
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
JSON Continuation Context Module
|
JSON Continuation Context Module
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Demo Configs — Auto-Discovery Module
|
Demo Configs — Auto-Discovery Module
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Base class for demo configurations.
|
Base class for demo configurations.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Investor Demo April 2026
|
Investor Demo April 2026
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""PWG Pilot Demo (April 2026)
|
"""PWG Pilot Demo (April 2026)
|
||||||
|
|
||||||
Bootstraps a complete PWG-Pilot demo environment in an empty dev/demo install:
|
Bootstraps a complete PWG-Pilot demo environment in an empty dev/demo install:
|
||||||
|
|
|
||||||
|
|
@ -1 +1,3 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# CommCoach Feature Container
|
# CommCoach Feature Container
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Real Estate feature module.
|
Real Estate feature module.
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Document retriever for BZO extraction pipeline.
|
Document retriever for BZO extraction pipeline.
|
||||||
Queries Dokument table and retrieves PDF content from ComponentObjects.
|
Queries Dokument table and retrieves PDF content from ComponentObjects.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Pipeline for extracting structured content from BZO PDFs.
|
Pipeline for extracting structured content from BZO PDFs.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
PDF extraction module for BZO documents.
|
PDF extraction module for BZO documents.
|
||||||
Extracts page-aware text blocks from PDF files.
|
Extracts page-aware text blocks from PDF files.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Rule taxonomy for BZO extraction.
|
Rule taxonomy for BZO extraction.
|
||||||
Defines fixed rule types and their patterns for deterministic rule detection.
|
Defines fixed rule types and their patterns for deterministic rule detection.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Real Estate data models for Architektur-Planungs-App.
|
Real Estate data models for Architektur-Planungs-App.
|
||||||
Implements a general Swiss architecture planning data model.
|
Implements a general Swiss architecture planning data model.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Handler functions for Real Estate feature routes.
|
Handler functions for Real Estate feature routes.
|
||||||
Contains extracted business logic from route handlers.
|
Contains extracted business logic from route handlers.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Interface to Real Estate database objects.
|
Interface to Real Estate database objects.
|
||||||
Uses PostgreSQL connector for data access with user/mandate filtering.
|
Uses PostgreSQL connector for data access with user/mandate filtering.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Real Estate feature main entry point.
|
Real Estate feature main entry point.
|
||||||
Handles feature definition, RBAC registration, and lifecycle hooks.
|
Handles feature definition, RBAC registration, and lifecycle hooks.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Parcel selection service: compute combined outline, total area, and Bauzone grouping.
|
Parcel selection service: compute combined outline, total area, and Bauzone grouping.
|
||||||
Used for multi-parcel selection in PEK map view.
|
Used for multi-parcel selection in PEK map view.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Gemeinde and BZO document services for Real Estate feature.
|
Gemeinde and BZO document services for Real Estate feature.
|
||||||
Provides ensure/import logic used by both routes and extract_bzo_information.
|
Provides ensure/import logic used by both routes and extract_bzo_information.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Real Estate routes for the backend API.
|
Real Estate routes for the backend API.
|
||||||
Implements stateless endpoints for real estate database operations with AI-powered natural language processing.
|
Implements stateless endpoints for real estate database operations with AI-powered natural language processing.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Swiss Topo Scraping Script
|
Swiss Topo Scraping Script
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Real Estate feature — AI-based intent recognition and CRUD operations.
|
Real Estate feature — AI-based intent recognition and CRUD operations.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Real Estate feature — BZO (Bau- und Zonenordnung) information extraction.
|
Real Estate feature — BZO (Bau- und Zonenordnung) information extraction.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Real Estate feature — Geometry utilities.
|
Real Estate feature — Geometry utilities.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Admin Demo Config API
|
Admin Demo Config API
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Central i18n registration for BackgroundJob progress messages.
|
"""Central i18n registration for BackgroundJob progress messages.
|
||||||
|
|
||||||
Walkers and consumers report progress via ``progressCb(..., messageKey="…",
|
Walkers and consumers report progress via ``progressCb(..., messageKey="…",
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Per-connection knowledge ingestion preference helpers.
|
"""Per-connection knowledge ingestion preference helpers.
|
||||||
|
|
||||||
Walkers call `loadConnectionPrefs(connectionId)` once at bootstrap start and
|
Walkers call `loadConnectionPrefs(connectionId)` once at bootstrap start and
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
workflowAutomation — System component for workflow orchestration.
|
workflowAutomation — System component for workflow orchestration.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
workflowAutomation.editor — Graph/Flow authoring backend.
|
workflowAutomation.editor — Graph/Flow authoring backend.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Quick-Check: existiert FeatureInstance-Row 6019e7d0-b23d-41ec-b9f7-3dd1293078f2
|
"""Quick-Check: existiert FeatureInstance-Row 6019e7d0-b23d-41ec-b9f7-3dd1293078f2
|
||||||
in poweron_app, und welche Mandate/Instances stehen mit dem RedmineTicketMirror in Verbindung?
|
in poweron_app, und welche Mandate/Instances stehen mit dem RedmineTicketMirror in Verbindung?
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Rekey frontend t('dot.notation') -> t('Deutscher Klartext') using locales/de.ts mapping.
|
Rekey frontend t('dot.notation') -> t('Deutscher Klartext') using locales/de.ts mapping.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Migration Script: Convert async def → def for route handlers that don't need async.
|
Migration Script: Convert async def → def for route handlers that don't need async.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Cleanup script for duplicate roles in the database.
|
Cleanup script for duplicate roles in the database.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
Migration Script: Migrate AccessRules to Vollqualifizierte ObjectKeys
|
Migration Script: Migrate AccessRules to Vollqualifizierte ObjectKeys
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Runtime-Check (A5): bestaetigt, dass die ``sysadmin``-Rolle aus der
|
"""Runtime-Check (A5): bestaetigt, dass die ``sysadmin``-Rolle aus der
|
||||||
Datenbank entfernt wurde und liefert eine kurze Inventur fuer die
|
Datenbank entfernt wurde und liefert eine kurze Inventur fuer die
|
||||||
isPlatformAdmin / isSysAdmin Flags.
|
isPlatformAdmin / isSysAdmin Flags.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""CI-Gate: Stelle sicher, dass keine Verweise auf die abgeschaffte
|
"""CI-Gate: Stelle sicher, dass keine Verweise auf die abgeschaffte
|
||||||
``sysadmin``-Rolle bzw. die alten Helper im Codebase mehr existieren.
|
``sysadmin``-Rolle bzw. die alten Helper im Codebase mehr existieren.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Diagnose: read a connection.bootstrap job result and print its keys.
|
"""Diagnose: read a connection.bootstrap job result and print its keys.
|
||||||
|
|
||||||
Usage (from repo root):
|
Usage (from repo root):
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Export the database schema from Pydantic MODEL_REGISTRY + fk_target metadata.
|
"""Export the database schema from Pydantic MODEL_REGISTRY + fk_target metadata.
|
||||||
|
|
||||||
Usage (run from gateway/):
|
Usage (run from gateway/):
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Datenbank-Anpassung an Pydantic-Modelle.
|
Datenbank-Anpassung an Pydantic-Modelle.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Audit-Skript fuer Legacy-Bestaende vor Bootstrap-Cleanup (Plan C).
|
"""Audit-Skript fuer Legacy-Bestaende vor Bootstrap-Cleanup (Plan C).
|
||||||
|
|
||||||
Prueft fuer jede der 5 Bootstrap-Migrationsroutinen, ob noch Restbestand
|
Prueft fuer jede der 5 Bootstrap-Migrationsroutinen, ob noch Restbestand
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Initialize poweron_automation2 database for the Automation2 feature.
|
Initialize poweron_automation2 database for the Automation2 feature.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Migration: Add `progressMessageData` JSONB column to BackgroundJob.
|
"""Migration: Add `progressMessageData` JSONB column to BackgroundJob.
|
||||||
|
|
||||||
Carries the structured i18n payload that lets the frontend translate
|
Carries the structured i18n payload that lets the frontend translate
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Migration: Drop NOT NULL on DataSource/FeatureDataSource cascade-inherit flags.
|
"""Migration: Drop NOT NULL on DataSource/FeatureDataSource cascade-inherit flags.
|
||||||
|
|
||||||
Switches three-valued semantics (NULL = inherit, True/False = explicit) for:
|
Switches three-valued semantics (NULL = inherit, True/False = explicit) for:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Migration: Rename DataSource.autoSync -> ragIndexEnabled, lastSynced -> lastIndexed.
|
"""Migration: Rename DataSource.autoSync -> ragIndexEnabled, lastSynced -> lastIndexed.
|
||||||
|
|
||||||
This is a one-off migration for the RAG consent & control unification.
|
This is a one-off migration for the RAG consent & control unification.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Migration: Add `settings` JSONB column to DataSource and FeatureDataSource.
|
"""Migration: Add `settings` JSONB column to DataSource and FeatureDataSource.
|
||||||
|
|
||||||
This is a one-off migration for the UDB DataSource Settings (Settings-Icon)
|
This is a one-off migration for the UDB DataSource Settings (Settings-Icon)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
Export Script: Generate Access Rules per Role Report
|
Export Script: Generate Access Rules per Role Report
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""One-time migration: Reassign all DB references from an old user UID to a new UID.
|
"""One-time migration: Reassign all DB references from an old user UID to a new UID.
|
||||||
|
|
||||||
When a user is re-created in PORTA (same username, new UUID), all existing records
|
When a user is re-created in PORTA (same username, new UUID), all existing records
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Stage 0: verify FileFolder table + FileItem.folderId column in management DB.
|
"""Stage 0: verify FileFolder table + FileItem.folderId column in management DB.
|
||||||
|
|
||||||
Run from the gateway directory (same as uvicorn):
|
Run from the gateway directory (same as uvicorn):
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Demo test fixtures.
|
Demo test fixtures.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
T-API: Demo Config API endpoint verification.
|
T-API: Demo Config API endpoint verification.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
T-BOOT: Bootstrap idempotency and demo state verification.
|
T-BOOT: Bootstrap idempotency and demo state verification.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
T-DATA: Demo data files verification.
|
T-DATA: Demo data files verification.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
T-NEU: Neutralization config verification.
|
T-NEU: Neutralization config verification.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
T-UC1: Trustee — Spesenverarbeitung.
|
T-UC1: Trustee — Spesenverarbeitung.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
T-UC2: Immobilien — Machbarkeitsstudie.
|
T-UC2: Immobilien — Machbarkeitsstudie.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
T-UC4: Sprach-Deployment — Spanish (es).
|
T-UC4: Sprach-Deployment — Spanish (es).
|
||||||
|
|
||||||
|
|
|
||||||
2
tests/fixtures/__init__.py
vendored
2
tests/fixtures/__init__.py
vendored
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# T18 — AC #16/#17: meta.usesAi on every node type; AI vs non-AI distinction.
|
# T18 — AC #16/#17: meta.usesAi on every node type; AI vs non-AI distinction.
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# Phase 7: UDM tools (getUdmStructure, walkUdmBlocks, filterUdmByType).
|
# Phase 7: UDM tools (getUdmStructure, walkUdmBlocks, filterUdmByType).
|
||||||
|
|
||||||
from modules.serviceCenter.services.serviceAgent.coreTools._documentTools import (
|
from modules.serviceCenter.services.serviceAgent.coreTools._documentTools import (
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Unit tests for the generic UDB tree builder (`_buildTree.py`).
|
"""Unit tests for the generic UDB tree builder (`_buildTree.py`).
|
||||||
|
|
||||||
Most node-level behavior moved into the polymorphic class hierarchy
|
Most node-level behavior moved into the polymorphic class hierarchy
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Unit tests for `_costEstimate` heuristic.
|
"""Unit tests for `_costEstimate` heuristic.
|
||||||
|
|
||||||
Validates the output shape, basic formulas, and that 'basis' annotations
|
Validates the output shape, basic formulas, and that 'basis' annotations
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Unit tests for `_inheritFlags` cascade-inherit helpers.
|
"""Unit tests for `_inheritFlags` cascade-inherit helpers.
|
||||||
|
|
||||||
Verifies:
|
Verifies:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Unit tests for P1d: consent gating, preference parsing, and walker behaviour.
|
"""Unit tests for P1d: consent gating, preference parsing, and walker behaviour.
|
||||||
|
|
||||||
Tests
|
Tests
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Unit tests for `_ragLimits` central helpers.
|
"""Unit tests for `_ragLimits` central helpers.
|
||||||
|
|
||||||
Verifies:
|
Verifies:
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""Unit tests for the polymorphic UDB node hierarchy (udbNodes.py).
|
"""Unit tests for the polymorphic UDB node hierarchy (udbNodes.py).
|
||||||
|
|
||||||
Each concrete node class is exercised for:
|
Each concrete node class is exercised for:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,2 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# Unit tests: context.extractContent serialize + presentation helpers (legacy handover dicts vs new paths).
|
# Unit tests: context.extractContent serialize + presentation helpers (legacy handover dicts vs new paths).
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# Unit tests: context.mergeContext primary text from extract handover (documents[0]).
|
# Unit tests: context.mergeContext primary text from extract handover (documents[0]).
|
||||||
|
|
||||||
import json
|
import json
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# Tests: node handover compatibility across all major node combinations.
|
# Tests: node handover compatibility across all major node combinations.
|
||||||
#
|
#
|
||||||
# Covers:
|
# Covers:
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# Tests for Phase 3: context.extractContent node, port types, executor dispatch.
|
# Tests for Phase 3: context.extractContent node, port types, executor dispatch.
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# Tests for Phase 4: data.consolidate, ai.consolidate, flow.loop level/concurrency, flow.merge dynamic.
|
# Tests for Phase 4: data.consolidate, ai.consolidate, flow.loop level/concurrency, flow.merge dynamic.
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
# Tests for Phase 5: Loop concurrency, StepLog batching, streaming aggregate.
|
# Tests for Phase 5: Loop concurrency, StepLog batching, streaming aggregate.
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
# Copyright (c) 2026 PowerOn AG
|
||||||
|
# All rights reserved.
|
||||||
"""
|
"""
|
||||||
Unit tests for automation2 graphUtils - resolveParameterReferences (ref/value format).
|
Unit tests for automation2 graphUtils - resolveParameterReferences (ref/value format).
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue