From 3e0bccc54c7ccc2ee27c16ab439de56aa66bc246 Mon Sep 17 00:00:00 2001 From: Teknium Date: Tue, 14 Apr 2026 10:58:07 -0700 Subject: [PATCH] fix: update existing webhook tests to use _webhook_register_url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tests/gateway/test_bluebubbles.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gateway/test_bluebubbles.py b/tests/gateway/test_bluebubbles.py index c84b1e47..a027bcd7 100644 --- a/tests/gateway/test_bluebubbles.py +++ b/tests/gateway/test_bluebubbles.py @@ -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):