Add local model asset catalog
This commit is contained in:
@@ -66,6 +66,7 @@ def test_configure_yolo_model_dry_run_selects_single_model(tmp_path: Path) -> No
|
||||
assert payload["selected_container_model_path"] == "/app/models/nested/detector.pt"
|
||||
assert payload["env_updates"]["GEOINTEL_INSTALL_AI"] == "true"
|
||||
assert payload["env_updates"]["YOLO_ENABLED"] == "true"
|
||||
assert payload["env_updates"]["YOLO_MODELS_DIR"] == "/app/models"
|
||||
assert payload["env_updates"]["YOLO_MODEL_PATH"] == "/app/models/nested/detector.pt"
|
||||
assert payload["will_download_models"] is False
|
||||
assert not (tmp_path / ".env").exists()
|
||||
@@ -94,4 +95,5 @@ def test_configure_yolo_model_apply_updates_existing_env_file(tmp_path: Path) ->
|
||||
assert "GEOINTEL_FRONTEND_PORT=1202" in contents
|
||||
assert "GEOINTEL_INSTALL_AI=true" in contents
|
||||
assert "YOLO_ENABLED=true" in contents
|
||||
assert "YOLO_MODELS_DIR=/app/models" in contents
|
||||
assert "YOLO_MODEL_PATH=/app/models/detector.engine" in contents
|
||||
|
||||
Reference in New Issue
Block a user