Finalize repo-scoping runtime rename

This commit is contained in:
2026-05-15 21:16:34 +02:00
parent 084159e51c
commit 28fad1b248
62 changed files with 445 additions and 305 deletions

View File

@@ -3,11 +3,11 @@ import sqlite3
from fastapi.testclient import TestClient
from repo_registry.core.service import RegistryService
from repo_registry.repo_ingestion.git import GitIngestionService
from repo_registry.storage.sqlite import RegistryStore
from repo_registry.web_api import app as app_module
from repo_registry.web_api.app import Settings, app, get_service, get_settings
from repo_scoping.core.service import RegistryService
from repo_scoping.repo_ingestion.git import GitIngestionService
from repo_scoping.storage.sqlite import RegistryStore
from repo_scoping.web_api import app as app_module
from repo_scoping.web_api.app import Settings, app, get_service, get_settings
def add_candidate_capability(database_path, repository_id, analysis_run_id, name):
@@ -1063,12 +1063,12 @@ def test_api_service_settings_can_enable_hashing_embedding_provider(tmp_path):
def test_settings_can_load_from_environment(monkeypatch):
monkeypatch.setenv("REPO_REGISTRY_DATABASE_PATH", "var/env.sqlite3")
monkeypatch.setenv("REPO_REGISTRY_CHECKOUT_ROOT", "var/env-checkouts")
monkeypatch.setenv("REPO_REGISTRY_LLM_PROVIDER", "mock")
monkeypatch.setenv("REPO_REGISTRY_LLM_MODEL", "demo-model")
monkeypatch.setenv("REPO_REGISTRY_EMBEDDING_PROVIDER", "hashing")
monkeypatch.setenv("REPO_REGISTRY_LOG_LEVEL", "DEBUG")
monkeypatch.setenv("REPO_SCOPING_DATABASE_PATH", "var/env.sqlite3")
monkeypatch.setenv("REPO_SCOPING_CHECKOUT_ROOT", "var/env-checkouts")
monkeypatch.setenv("REPO_SCOPING_LLM_PROVIDER", "mock")
monkeypatch.setenv("REPO_SCOPING_LLM_MODEL", "demo-model")
monkeypatch.setenv("REPO_SCOPING_EMBEDDING_PROVIDER", "hashing")
monkeypatch.setenv("REPO_SCOPING_LOG_LEVEL", "DEBUG")
settings = Settings()
@@ -2696,7 +2696,7 @@ def test_ui_manual_registry_entry_loop(tmp_path):
delete_repository_response = client.post(
f"{repository_path}/delete",
data={"confirm_name": "Manual Repo"},
data={"confirm_name": "manual-repo"},
follow_redirects=False,
)
assert delete_repository_response.status_code == 303