Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Refine Basecamp example screenshot.

Niloth Pe1f256c90507
diff --git a/static/images/integrations/basecamp/001.png b/static/images/integrations/basecamp/001.png
index fccbdbd12e3..10f9c040b04 100644
Binary files a/static/images/integrations/basecamp/001.png and b/static/images/integrations/basecamp/001.png differ
diff --git a/zerver/webhooks/basecamp/fixtures/doc_active.json b/zerver/webhooks/basecamp/fixtures/doc_active.json
index 41b422ecbb3..790ecb70ae6 100644
--- a/zerver/webhooks/basecamp/fixtures/doc_active.json
+++ b/zerver/webhooks/basecamp/fixtures/doc_active.json
@@ -23,7 +23,7 @@
},
"bucket": {
"id": 2957043,
- "name": "Zulip HQ",
+ "name": "Event Planning - Annual Conference",
"type": "Project"
},
"creator": {
@@ -45,7 +45,7 @@
"name": "Zulip"
}
},
- "title": "New doc",
+ "title": "Sponsorship Package Outline",
"content": "\u003cdiv\u003eabc\u003c/div\u003e"
},
"creator": {
diff --git a/zerver/webhooks/basecamp/tests.py b/zerver/webhooks/basecamp/tests.py
index 9455b5bbc82..53a9782b2b5 100644
--- a/zerver/webhooks/basecamp/tests.py
+++ b/zerver/webhooks/basecamp/tests.py
@@ -9,8 +9,10 @@ class BasecampHookTests(WebhookTestCase):
WEBHOOK_DIR_NAME = "basecamp"
def test_basecamp_makes_doc_active(self) -> None:
- expected_message = "Tomasz activated the document [New doc](https://3.basecamp.com/3688623/buckets/2957043/documents/432522214)."
- self._send_and_test_message("doc_active", expected_message)
+ expected_message = "Tomasz activated the document [Sponsorship Package Outline](https://3.basecamp.com/3688623/buckets/2957043/documents/432522214)."
+ self._send_and_test_message(
+ "doc_active", expected_message, "Event Planning - Annual Conference"
+ )
def test_basecamp_makes_doc_archived(self) -> None:
expected_message = "Tomasz archived the document [new doc](https://3.basecamp.com/3688623/buckets/2957043/documents/434455988)."
@@ -136,5 +138,7 @@ class BasecampHookTests(WebhookTestCase):
expected_message = "Tomasz created the [comment](https://3.basecamp.com/3688623/buckets/2957043/todos/427055624#__recording_427058780) of the task [New task](https://3.basecamp.com/3688623/buckets/2957043/todos/427055624)."
self._send_and_test_message("comment_created", expected_message)
- def _send_and_test_message(self, fixture_name: str, expected_message: str) -> None:
- self.check_webhook(fixture_name, TOPIC_NAME, expected_message)
+ def _send_and_test_message(
+ self, fixture_name: str, expected_message: str, topic_name: str = TOPIC_NAME
+ ) -> None:
+ self.check_webhook(fixture_name, topic_name, expected_message)