Git ingestion part of Milestone 2

This commit is contained in:
2026-04-25 22:37:06 +02:00
parent 3d9032a386
commit ef41a9974a
8 changed files with 185 additions and 7 deletions

View File

@@ -5,7 +5,10 @@ from repo_registry.web_api.app import Settings, app, get_settings
def test_api_manual_registry_loop(tmp_path):
def override_settings():
return Settings(database_path=str(tmp_path / "api.sqlite3"))
return Settings(
database_path=str(tmp_path / "api.sqlite3"),
checkout_root=str(tmp_path / "checkouts"),
)
app.dependency_overrides[get_settings] = override_settings
client = TestClient(app)
@@ -79,7 +82,10 @@ def test_api_analysis_run_loop(tmp_path):
)
def override_settings():
return Settings(database_path=str(tmp_path / "api-analysis.sqlite3"))
return Settings(
database_path=str(tmp_path / "api-analysis.sqlite3"),
checkout_root=str(tmp_path / "api-checkouts"),
)
app.dependency_overrides[get_settings] = override_settings
client = TestClient(app)