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.

test: Use variable instead of hard coded value.

Aman Agrawal66a1037f06af
diff --git a/zerver/tests/test_email_notifications.py b/zerver/tests/test_email_notifications.py
index f6b8f640277..cc9653077f6 100644
--- a/zerver/tests/test_email_notifications.py
+++ b/zerver/tests/test_email_notifications.py
@@ -702,7 +702,7 @@ class TestMissedMessages(ZulipTestCase):
'Come and join us in #**Verona**.')
stream_id = get_stream('Verona', get_realm('zulip')).id
href = f"http://zulip.testserver/#narrow/stream/{stream_id}-Verona"
- verify_body_include = [f'<a class="stream" data-stream-id="5" href="{href}">#Verona</a']
+ verify_body_include = [f'<a class="stream" data-stream-id="{stream_id}" href="{href}">#Verona</a']
email_subject = 'PMs with Othello, the Moor of Venice'
self._test_cases(msg_id, verify_body_include, email_subject, send_as_user=False, verify_html_body=True)