From b991c8019eca50cfb2d3a94f80a4e7e0ed081946 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 5 Jul 2022 12:28:29 -0700 Subject: [PATCH] slack_incoming: Simplify empty POST test. Signed-off-by: Anders Kaseorg --- zerver/webhooks/slack_incoming/tests.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/zerver/webhooks/slack_incoming/tests.py b/zerver/webhooks/slack_incoming/tests.py index ea00310c64..543cd2c17a 100644 --- a/zerver/webhooks/slack_incoming/tests.py +++ b/zerver/webhooks/slack_incoming/tests.py @@ -39,11 +39,7 @@ Hello, world. def test_message_without_payload(self) -> None: self.url = self.build_webhook_url() - result = self.client_post( - self.url, - None, # type: ignore[arg-type] # we need to simulate a http request that doesn't send any payload - content_type="multipart/form-data; boundary=14537ad40cab4c77b6699c9c0fa9c82f", - ) + result = self.client_post(self.url) self.assert_json_error(result, "Missing 'payload' argument") def test_message_with_actions(self) -> None: