Shape audit (milestone 296): tests helpers, alembic, models, MCP, routes, services, frontend consolidation #120

Merged
bvandeusen merged 8 commits from dev into main 2026-08-21 12:48:09 -04:00
Showing only changes of commit 92e38ff17b - Show all commits
+8 -2
View File
@@ -764,7 +764,11 @@ def test_route_reads_every_arg_the_hook_sends():
import inspect
from scribe.routes import plugin as routes
src = inspect.getsource(routes.write_path_prior_art)
# The handler plus the query-scope helper it delegates repo/project_id
# to — the contract is what the ROUTE MODULE reads, wherever it reads it.
src = inspect.getsource(routes.write_path_prior_art) + inspect.getsource(
routes._project_scope
)
for arg in ("path", "code", "repo", "project_id", "exclude_ids",
"exclude_sync_ids", "shapes"):
assert f'request.args.get("{arg}"' in src, f"route ignores {arg}"
@@ -782,7 +786,9 @@ def test_route_resolves_repo_to_a_project_not_to_a_location_filter():
import inspect
from scribe.routes import plugin as routes
src = inspect.getsource(routes.write_path_prior_art)
src = inspect.getsource(routes.write_path_prior_art) + inspect.getsource(
routes._project_scope
)
assert "resolve_project" in src
assert "repo=repo" not in src