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 pathlib import Path
|
||||
from tests.frontend_contract import read_feature
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_ai_labs_mobile_density_css_contracts() -> None:
|
||||
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
||||
|
||||
assert ".workspace-grid-ai .workspace-panel" in css
|
||||
assert ".lab-block label" in css
|
||||
assert ".lab-block input," in css
|
||||
assert ".lab-block select" in css
|
||||
assert ".lab-block .primary-action" in css
|
||||
assert ".result-summary-card" in css
|
||||
assert ".model-card strong" in css
|
||||
assert ".table-scroll td" in css
|
||||
assert ".table-scroll th" in css
|
||||
assert "overflow-wrap: anywhere;" in css
|
||||
assert "minmax(7.5rem, 1fr)" in css
|
||||
|
||||
|
||||
def test_detection_and_segmentation_keep_ai_lab_workflow_markup() -> None:
|
||||
detection_lab = "\n".join(
|
||||
(
|
||||
(ROOT / "frontend" / "src" / "components" / "detection" / "DetectionLab.tsx").read_text(encoding="utf-8"),
|
||||
(ROOT / "frontend" / "src" / "components" / "detection" / "DetectionModelManagement.tsx").read_text(encoding="utf-8"),
|
||||
)
|
||||
)
|
||||
segmentation_lab = read_feature("segmentation")
|
||||
|
||||
for source in (detection_lab, segmentation_lab):
|
||||
assert 'className="model-list"' in source
|
||||
assert "model-card" in source
|
||||
assert 'className="lab-block"' in source
|
||||
assert 'className="lab-form-grid"' in source
|
||||
assert 'className="result-summary-card"' in source
|
||||
assert 'className="table-scroll"' in source
|
||||
Reference in new issue
Block a user