test: align source contracts with modular workbench
Managed validation / full (pull_request) Successful in 18s
GeoIntel release gates / Compile, test, contracts and builds (pull_request) Successful in 2m56s
GeoIntel release gates / Python and npm vulnerability policy (pull_request) Successful in 24s
GeoIntel release gates / GIS image, SBOM and container scan (pull_request) Failing after 54s
Managed validation / full (pull_request) Successful in 18s
GeoIntel release gates / Compile, test, contracts and builds (pull_request) Successful in 2m56s
GeoIntel release gates / Python and npm vulnerability policy (pull_request) Successful in 24s
GeoIntel release gates / GIS image, SBOM and container scan (pull_request) Failing after 54s
This commit is contained in:
@@ -8,7 +8,7 @@ ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_app_uses_shared_orchestration_hooks() -> None:
|
||||
app = (ROOT / "frontend" / "src" / "App.tsx").read_text(encoding="utf-8")
|
||||
app = (ROOT / "frontend" / "src" / "WorkbenchApp.tsx").read_text(encoding="utf-8")
|
||||
|
||||
assert "useProjectWorkspace" in app
|
||||
assert "useDemoWorkflow" in app
|
||||
@@ -31,7 +31,7 @@ def test_app_uses_shared_orchestration_hooks() -> None:
|
||||
|
||||
|
||||
def test_app_entrypoint_has_clean_encoding_and_react_imports() -> None:
|
||||
app_path = ROOT / "frontend" / "src" / "App.tsx"
|
||||
app_path = ROOT / "frontend" / "src" / "WorkbenchApp.tsx"
|
||||
app_bytes = app_path.read_bytes()
|
||||
app = app_path.read_text(encoding="utf-8")
|
||||
|
||||
@@ -61,21 +61,21 @@ def test_demo_workflow_hook_owns_demo_api_and_cross_module_selection() -> None:
|
||||
|
||||
|
||||
def test_workbench_bootstrap_hook_owns_entrypoint_effects() -> None:
|
||||
app = (ROOT / "frontend" / "src" / "App.tsx").read_text(encoding="utf-8")
|
||||
app = (ROOT / "frontend" / "src" / "WorkbenchApp.tsx").read_text(encoding="utf-8")
|
||||
hook = read_feature("shell")
|
||||
|
||||
assert "loadProjects().catch(() => null)" not in app
|
||||
assert "loadDetectionResults().catch(() => null)" not in app
|
||||
assert "loadSegmentationResults().catch(() => null)" not in app
|
||||
assert "loadProjects().catch(() => null)" in hook
|
||||
assert "loadCapabilities().catch(() => null)" in hook
|
||||
assert "loadDetectionModels().catch(() => null)" in hook
|
||||
assert "loadSegmentationModels().catch(() => null)" in hook
|
||||
assert "loadProjects().catch(meld('werkruimtes'))" in hook
|
||||
assert "loadCapabilities().catch(meld('bronkoppelingen'))" in hook
|
||||
assert "loadDetectionModels().catch(meld('detectiemodellen'))" in hook
|
||||
assert "loadSegmentationModels().catch(meld('segmentatiemodellen'))" in hook
|
||||
assert "resetProjectData()" in hook
|
||||
assert "resetDatasetForProject()" in hook
|
||||
assert "loadProjectData(selectedProjectId).catch(() => null)" in hook
|
||||
assert "loadDetectionResults().catch(() => null)" in hook
|
||||
assert "loadSegmentationResults().catch(() => null)" in hook
|
||||
assert "loadProjectData(selectedProjectId).catch(meld('gebieden en bronnen'))" in hook
|
||||
assert "loadDetectionResults().catch(meld('detectieresultaten'))" in hook
|
||||
assert "loadSegmentationResults().catch(meld('segmentatieresultaten'))" in hook
|
||||
|
||||
|
||||
def test_project_workspace_hook_owns_project_area_dataset_loading() -> None:
|
||||
|
||||
Reference in New Issue
Block a user