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.

webhooks/helloworld: Fix stale fixture-name comments.

sathwikshetty339534106a8e3d
diff --git a/docs/webhooks/incoming-webhooks-walkthrough.md b/docs/webhooks/incoming-webhooks-walkthrough.md
index b74ae284af5..7757a750951 100644
--- a/docs/webhooks/incoming-webhooks-walkthrough.md
+++ b/docs/webhooks/incoming-webhooks-walkthrough.md
@@ -311,7 +311,7 @@ class HelloWorldHookTests(WebhookTestCase):
expected_topic_name = "Hello World"
expected_message = "Hello! I am happy to be here! :smile:\nThe Wikipedia featured article for today is **[Marilyn Monroe](https://en.wikipedia.org/wiki/Marilyn_Monroe)**"
- # use fixture named helloworld_hello
+ # use fixture named hello.json
self.check_webhook(
"hello",
expected_topic_name,
@@ -345,7 +345,7 @@ Hello World webhook, then we would add another test function to
expected_topic_name = "Hello World"
expected_message = "Hello! I am happy to be here! :smile:\nThe Wikipedia featured article for today is **[Goodbye](https://en.wikipedia.org/wiki/Goodbye)**"
- # use fixture named helloworld_goodbye
+ # use fixture named goodbye.json
self.check_webhook(
"goodbye",
expected_topic_name,
diff --git a/zerver/webhooks/helloworld/tests.py b/zerver/webhooks/helloworld/tests.py
index aa33f6d261d..fcedbd101d6 100644
--- a/zerver/webhooks/helloworld/tests.py
+++ b/zerver/webhooks/helloworld/tests.py
@@ -13,7 +13,7 @@ class HelloWorldHookTests(WebhookTestCase):
expected_topic_name = "Hello World"
expected_message = "Hello! I am happy to be here! :smile:\nThe Wikipedia featured article for today is **[Marilyn Monroe](https://en.wikipedia.org/wiki/Marilyn_Monroe)**"
- # use fixture named helloworld_hello
+ # use fixture named hello.json
self.check_webhook(
"hello",
expected_topic_name,
@@ -25,7 +25,7 @@ class HelloWorldHookTests(WebhookTestCase):
expected_topic_name = "Hello World"
expected_message = "Hello! I am happy to be here! :smile:\nThe Wikipedia featured article for today is **[Goodbye](https://en.wikipedia.org/wiki/Goodbye)**"
- # use fixture named helloworld_goodbye
+ # use fixture named goodbye.json
self.check_webhook(
"goodbye",
expected_topic_name,