open graph: Display realm description as open graph description.

This commit is contained in:
Puneeth Chaganti
2019-04-24 08:00:15 +05:30
committed by Tim Abbott
parent a653fcca93
commit 2d9c5b3575
4 changed files with 27 additions and 4 deletions

View File

@@ -5,8 +5,7 @@ from bs4 import BeautifulSoup
from django.test import override_settings
from unittest.mock import Mock, patch
from zerver.lib.test_classes import ZulipTestCase
from zerver.middleware import is_slow_query
from zerver.middleware import write_log_line
from zerver.middleware import is_slow_query, write_log_line
class SlowQueryTest(ZulipTestCase):
SLOW_QUERY_TIME = 10
@@ -139,3 +138,13 @@ class OpenGraphTest(ZulipTestCase):
[],
# Test that our open graph logic doesn't throw a 500
404)
def test_login_page_simple_description(self) -> None:
name = 'Zulip Dev'
description = "The Zulip development environment default organization. It's great for testing!"
self.check_title_and_description(
'/login/',
name,
[description],
[])