test(8249): signature and source-text batch, the hook tests run the hook
- The caller-scoping property now covers services/family, family_adoption and platforms, with the seven reads that need no caller named and why. The hand-written platform list goes. - The snippet location keys: one test checks every door (service, MCP tool, web route) takes them; the route-only copy goes. - The write-path hook: the payload-shape and skip-list tests searched the shell script for strings. They now run the hook against a local listener and check what it sends: the code from each of the four payload field names, and nothing for a note, JSON or SVG while a YAML file and a .py are still asked about. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
"""Structural tests for the platforms blueprint —
|
||||
registration and the route-to-service contract. What the writes do is in
|
||||
tests/test_integration_platforms.py."""
|
||||
import inspect
|
||||
"""Structural tests for the platforms blueprint: every endpoint is routed.
|
||||
That each service takes its caller is in tests/test_service_user_id_contract.py,
|
||||
and what the writes do is in tests/test_integration_platforms.py."""
|
||||
|
||||
|
||||
def test_platforms_blueprint_registered_in_app():
|
||||
@@ -17,12 +16,3 @@ def test_platforms_blueprint_registered_in_app():
|
||||
("/api/projects/<int:project_id>/platforms", "PUT"),
|
||||
):
|
||||
assert (rule, method) in rules, f"{method} {rule} is not routed"
|
||||
|
||||
|
||||
def test_writes_to_the_catalog_and_to_a_project_take_the_caller():
|
||||
"""The catalog's admin gate and the project's write gate both live in the
|
||||
service, so every write must be handed the caller to check."""
|
||||
from grimoire.services import platforms as svc
|
||||
for name in ("create_platform", "update_platform", "set_project_platforms",
|
||||
"project_platforms"):
|
||||
assert "user_id" in inspect.signature(getattr(svc, name)).parameters
|
||||
|
||||
Reference in New Issue
Block a user