From f52fd13d6deba6c8be1d490991c6c683b2faa798 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Fri, 14 Apr 2023 14:52:28 +0200 Subject: [PATCH] Remove duplicate webhook test (#91420) Fix webhook test --- tests/components/webhook/test_init.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/tests/components/webhook/test_init.py b/tests/components/webhook/test_init.py index 580366c16ea..c0853aa49d9 100644 --- a/tests/components/webhook/test_init.py +++ b/tests/components/webhook/test_init.py @@ -131,25 +131,6 @@ async def test_webhook_put(hass: HomeAssistant, mock_client) -> None: assert hooks[0][2].method == "PUT" -async def test_webhook_get(hass, mock_client): - """Test sending a get request to a webhook.""" - hooks = [] - webhook_id = hass.components.webhook.async_generate_id() - - async def handle(*args): - """Handle webhook.""" - hooks.append(args) - - hass.components.webhook.async_register("test", "Test hook", webhook_id, handle) - - resp = await mock_client.get(f"/api/webhook/{webhook_id}") - assert resp.status == 200 - assert len(hooks) == 1 - assert hooks[0][0] is hass - assert hooks[0][1] == webhook_id - assert hooks[0][2].method == "GET" - - async def test_webhook_head(hass: HomeAssistant, mock_client) -> None: """Test sending a head request to a webhook.""" hooks = []