mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix: update existing webhook tests to use _webhook_register_url
Follow-up for cherry-picked PR #9746 — three pre-existing tests used adapter._webhook_url (bare URL) in mock data, but _register_webhook and _unregister_webhook now compare against _webhook_register_url (password-bearing URL). Updated to match.
This commit is contained in:
parent
326cbbe40e
commit
3e0bccc54c
1 changed files with 3 additions and 3 deletions
|
|
@ -579,7 +579,7 @@ class TestBlueBubblesWebhookRegistration:
|
|||
"""Crash resilience — existing registration is reused, no POST needed."""
|
||||
import asyncio
|
||||
adapter = _make_adapter(monkeypatch)
|
||||
url = adapter._webhook_url
|
||||
url = adapter._webhook_register_url
|
||||
adapter.client = self._mock_client(
|
||||
get_response={"status": 200, "data": [
|
||||
{"id": 7, "url": url, "events": ["new-message"]},
|
||||
|
|
@ -627,7 +627,7 @@ class TestBlueBubblesWebhookRegistration:
|
|||
def test_unregister_removes_matching(self, monkeypatch):
|
||||
import asyncio
|
||||
adapter = _make_adapter(monkeypatch)
|
||||
url = adapter._webhook_url
|
||||
url = adapter._webhook_register_url
|
||||
adapter.client = self._mock_client(
|
||||
get_response={"status": 200, "data": [
|
||||
{"id": 10, "url": url},
|
||||
|
|
@ -642,7 +642,7 @@ class TestBlueBubblesWebhookRegistration:
|
|||
"""Multiple orphaned registrations for same URL — all get removed."""
|
||||
import asyncio
|
||||
adapter = _make_adapter(monkeypatch)
|
||||
url = adapter._webhook_url
|
||||
url = adapter._webhook_register_url
|
||||
deleted_ids = []
|
||||
|
||||
async def mock_delete(*args, **kwargs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue