mirror of https://github.com/zulip/zulip.git
test_link_embed: Convert "".format to f-string.
Generated by pyupgrade. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
b572b18e70
commit
2afe82ba2e
|
@ -916,7 +916,7 @@ class PreviewTestCase(ZulipTestCase):
|
|||
|
||||
self.assertEqual(cached_data, mocked_data)
|
||||
msg.refresh_from_db()
|
||||
self.assertIn('a data-id="{}"'.format(escape(mocked_data.html)), msg.rendered_content)
|
||||
self.assertIn(f'a data-id="{escape(mocked_data.html)}"', msg.rendered_content)
|
||||
|
||||
@responses.activate
|
||||
@override_settings(INLINE_URL_EMBED_PREVIEW=True)
|
||||
|
|
Loading…
Reference in New Issue