test: Use variable instead of hard coded value.

This commit is contained in:
Aman Agrawal 2020-08-31 20:48:40 +05:30 committed by Tim Abbott
parent 0682d5c0f3
commit 66a1037f06
1 changed files with 1 additions and 1 deletions

View File

@ -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)