mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
tests: Rename *topic local variables to *topic_name.
This is preparatory work towards adding a Topic model. We plan to use the local variable name as 'topic' for the Topic model objects. Currently, we use *topic as the local variable name for topic names. We rename local variables of the form *topic to *topic_name so that we don't need to think about type collisions in individual code paths where we might want to talk about both Topic objects and strings for the topic name.
This commit is contained in:
committed by
Tim Abbott
parent
b7e56ccbdc
commit
676c07be5b
@@ -169,14 +169,14 @@ class WebhookURLConfigurationTestCase(WebhookTestCase):
|
||||
self.test_user, self.url, payload, content_type="application/json"
|
||||
)
|
||||
|
||||
expected_topic = "Hello World"
|
||||
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)**"
|
||||
|
||||
msg = self.get_last_message()
|
||||
self.assert_stream_message(
|
||||
message=msg,
|
||||
stream_name="helloworld_renamed",
|
||||
topic_name=expected_topic,
|
||||
topic_name=expected_topic_name,
|
||||
content=expected_message,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user