mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
test_middleware: Narrow the type of open_graph_description.
Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
committed by
Tim Abbott
parent
cf455131ef
commit
6400cd93ea
@@ -79,6 +79,7 @@ class OpenGraphTest(ZulipTestCase):
|
|||||||
open_graph_description = assert_is_not_none(
|
open_graph_description = assert_is_not_none(
|
||||||
bs.select_one('meta[property="og:description"]')
|
bs.select_one('meta[property="og:description"]')
|
||||||
).get("content")
|
).get("content")
|
||||||
|
assert isinstance(open_graph_description, str)
|
||||||
for substring in in_description:
|
for substring in in_description:
|
||||||
self.assertIn(substring, open_graph_description)
|
self.assertIn(substring, open_graph_description)
|
||||||
for substring in not_in_description:
|
for substring in not_in_description:
|
||||||
|
|||||||
Reference in New Issue
Block a user