mirror of
https://github.com/zulip/zulip.git
synced 2025-10-25 00:53:56 +00:00
ruff: Fix SIM118 Use key in dict instead of key in dict.keys().
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a6442288cf
commit
e1ed44907b
@@ -231,7 +231,7 @@ class DocPageTest(ZulipTestCase):
|
||||
],
|
||||
)
|
||||
|
||||
for integration in INTEGRATIONS.keys():
|
||||
for integration in INTEGRATIONS:
|
||||
url = f"/integrations/doc-html/{integration}"
|
||||
self._test(url, "", doc_html_str=True)
|
||||
|
||||
@@ -253,9 +253,9 @@ class DocPageTest(ZulipTestCase):
|
||||
self._test(url, description, doc_html_str=True)
|
||||
|
||||
# Test category pages
|
||||
for category in CATEGORIES.keys():
|
||||
for category in CATEGORIES:
|
||||
url = f"/integrations/{category}"
|
||||
if category in META_CATEGORY.keys():
|
||||
if category in META_CATEGORY:
|
||||
title = f"<title>{CATEGORIES[category]} | Zulip integrations</title>"
|
||||
og_title = f'<meta property="og:title" content="{CATEGORIES[category]} | Zulip integrations" />'
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user