Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
slack_incoming: Simplify empty POST test.
Anders Kaseorgb991c8019eca
diff --git a/zerver/webhooks/slack_incoming/tests.py b/zerver/webhooks/slack_incoming/tests.pyindex ea00310c648..543cd2c17a9 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: