generated from coulomb/repo-seed
Finalize repo-scoping runtime rename
This commit is contained in:
@@ -2,7 +2,7 @@ import json
|
||||
|
||||
from fastapi.testclient import TestClient
|
||||
|
||||
from repo_registry.web_api.app import app
|
||||
from repo_scoping.web_api.app import app
|
||||
|
||||
|
||||
def write_json(path, payload):
|
||||
@@ -47,7 +47,7 @@ def seed_review_artifacts(root):
|
||||
{
|
||||
"name": "HTTP API surface",
|
||||
"type": "API",
|
||||
"location": "src/repo_registry/web_api/app.py",
|
||||
"location": "src/repo_scoping/web_api/app.py",
|
||||
}
|
||||
],
|
||||
}
|
||||
@@ -76,7 +76,7 @@ def seed_review_artifacts(root):
|
||||
{
|
||||
"name": "HTTP API surface",
|
||||
"type": "API",
|
||||
"location": "src/repo_registry/web_api/app.py",
|
||||
"location": "src/repo_scoping/web_api/app.py",
|
||||
}
|
||||
],
|
||||
}
|
||||
@@ -92,7 +92,7 @@ def seed_review_artifacts(root):
|
||||
def test_self_scoping_ui_compares_and_records_outcome(tmp_path, monkeypatch):
|
||||
root = tmp_path / "self-scoping"
|
||||
seed_review_artifacts(root)
|
||||
monkeypatch.setenv("REPO_REGISTRY_SELF_SCOPING_ROOT", str(root))
|
||||
monkeypatch.setenv("REPO_SCOPING_SELF_SCOPING_ROOT", str(root))
|
||||
client = TestClient(app)
|
||||
|
||||
index = client.get("/ui/self-scoping")
|
||||
@@ -126,7 +126,7 @@ def test_self_scoping_ui_compares_and_records_outcome(tmp_path, monkeypatch):
|
||||
def test_self_scoping_ui_compares_two_assessment_runs(tmp_path, monkeypatch):
|
||||
root = tmp_path / "self-scoping"
|
||||
seed_review_artifacts(root)
|
||||
monkeypatch.setenv("REPO_REGISTRY_SELF_SCOPING_ROOT", str(root))
|
||||
monkeypatch.setenv("REPO_SCOPING_SELF_SCOPING_ROOT", str(root))
|
||||
client = TestClient(app)
|
||||
|
||||
review = client.get(
|
||||
|
||||
Reference in New Issue
Block a user