generated from coulomb/repo-seed
Git ingestion part of Milestone 2
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user