mirror of https://github.com/zulip/zulip.git
test: Use variable instead of hard coded value.
This commit is contained in:
parent
0682d5c0f3
commit
66a1037f06
|
@ -702,7 +702,7 @@ class TestMissedMessages(ZulipTestCase):
|
||||||
'Come and join us in #**Verona**.')
|
'Come and join us in #**Verona**.')
|
||||||
stream_id = get_stream('Verona', get_realm('zulip')).id
|
stream_id = get_stream('Verona', get_realm('zulip')).id
|
||||||
href = f"http://zulip.testserver/#narrow/stream/{stream_id}-Verona"
|
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'
|
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)
|
self._test_cases(msg_id, verify_body_include, email_subject, send_as_user=False, verify_html_body=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue