Publish curated GeoIntel source snapshot
This commit is contained in:
commit
0aae654d6e
764 files changed
+169154
No files matched your search
@@ -0,0 +1,39 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
from tests.frontend_contract import read_feature
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_detection_lab_distinguishes_configured_model_from_ui_runnable_action() -> None:
|
||||
lab = read_feature("detection")
|
||||
|
||||
assert "detectionModelUiRunnable" in lab
|
||||
assert "selectedDetectionModelId !== 'manual-fixture-detector'" in lab
|
||||
assert "detectionRunBlockedReason" in lab
|
||||
assert "Het fixturemodel is alleen bedoeld voor expliciete tests" in lab
|
||||
assert "Klaar om gebouwen te zoeken" in lab
|
||||
assert "disabled={runningDetection || runningDetectionCalibration || detectionJobActive || !detectionRunReady}" in lab
|
||||
assert "detectionJob?.status === 'queued' || detectionJob?.status === 'running'" in lab
|
||||
|
||||
|
||||
def test_segmentation_lab_distinguishes_configured_model_from_ui_runnable_action() -> None:
|
||||
lab = read_feature("segmentation")
|
||||
|
||||
assert "segmentationModelUiRunnable" in lab
|
||||
assert "selectedSegmentationModelId !== 'fixture-segmenter'" in lab
|
||||
assert "segmentationRunBlockedReason" in lab
|
||||
assert "Het fixturemodel is alleen bedoeld voor expliciete tests" in lab
|
||||
assert "Analyse" in lab
|
||||
assert "disabled={runningSegmentation || segmentationJobActive || !segmentationRunReady}" in lab
|
||||
assert "segmentationJob?.status === 'queued' || segmentationJob?.status === 'running'" in lab
|
||||
|
||||
|
||||
def test_ai_lab_guardrail_styles_remain_compact() -> None:
|
||||
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
||||
|
||||
assert ".lab-action-guardrail" in css
|
||||
assert ".lab-action-guardrail-ready" in css
|
||||
assert "overflow-wrap: anywhere;" in css
|
||||
Reference in new issue
Block a user