Git ingestion part of Milestone 2
This commit is contained in:
parent
3d9032a386
commit
ef41a9974a
8 changed files with 185 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue