test_link_embed: Convert "".format to f-string.

Generated by pyupgrade.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2022-04-26 16:44:58 -07:00 committed by Tim Abbott
parent b572b18e70
commit 2afe82ba2e
1 changed files with 1 additions and 1 deletions

View File

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