Validate umbrella graph WebUI proof
This commit is contained in:
@@ -44,7 +44,7 @@ def test_loader_exposes_seven_method_contract(loader):
|
||||
|
||||
|
||||
def test_loader_register_wires_our_plugin(loader, monkeypatch):
|
||||
"""End-to-end: env var → import this plugin → register() fires our 2 routes + processor."""
|
||||
"""End-to-end: env var → import this plugin → register() fires plugin routes + processor."""
|
||||
monkeypatch.setenv("HERMES_WEBUI_PYTHON_PLUGIN", "svrnty_hermes_webui_plugin")
|
||||
# Reset loader idempotency guard so we can re-run in-process
|
||||
loader._LOADED = False
|
||||
@@ -57,9 +57,11 @@ def test_loader_register_wires_our_plugin(loader, monkeypatch):
|
||||
sys.path.insert(0, str(PLUGIN_REPO))
|
||||
loader.load_plugin()
|
||||
|
||||
# Routes registered: /api/transcribe (POST) + /api/vault/status (GET)
|
||||
# Core routes registered, including the /umbrella graph API pair.
|
||||
assert ("POST", "/api/transcribe") in loader._ROUTES
|
||||
assert ("GET", "/api/vault/status") in loader._ROUTES
|
||||
assert ("GET", "/api/umbrella") in loader._ROUTES
|
||||
assert ("GET", "/api/umbrella/doc") in loader._ROUTES
|
||||
# Static + injected URLs
|
||||
assert "svrnty" in loader._STATIC
|
||||
assert "/plugins/svrnty/app.css" in loader._STYLESHEETS
|
||||
|
||||
Reference in New Issue
Block a user