Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
test_middleware: Narrow the type of open_graph_description.
Zixuan James Li6400cd93eae1
diff --git a/zerver/tests/test_middleware.py b/zerver/tests/test_middleware.pyindex cb0d4214a73..5efeaf49139 100644--- a/zerver/tests/test_middleware.py+++ b/zerver/tests/test_middleware.py@@ -79,6 +79,7 @@ class OpenGraphTest(ZulipTestCase):open_graph_description = assert_is_not_none(bs.select_one('meta[property="og:description"]')).get("content")+ assert isinstance(open_graph_description, str)for substring in in_description:self.assertIn(substring, open_graph_description)for substring in not_in_description: