mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 17:43:58 +00:00
test_home: Fix expected text in /hello page.
This commit is contained in:
@@ -253,7 +253,7 @@ class HomeTest(ZulipTestCase):
|
||||
result = self.client_post('/accounts/accept_terms/')
|
||||
self.assertEqual(result.status_code, 200)
|
||||
self.assert_in_response("I agree to the", result)
|
||||
self.assert_in_response("Finally, workplace chat", result)
|
||||
self.assert_in_response("most productive group chat", result)
|
||||
|
||||
def test_accept_terms_of_service(self):
|
||||
# type: () -> None
|
||||
@@ -425,7 +425,7 @@ class HomeTest(ZulipTestCase):
|
||||
with patch('zerver.views.home.get_subdomain', return_value=""):
|
||||
result = self._get_home_page()
|
||||
self.assertEqual(result.status_code, 200)
|
||||
self.assert_in_response('Finally, workplace chat', result)
|
||||
self.assert_in_response('most productive group chat', result)
|
||||
|
||||
with patch('zerver.views.home.get_subdomain', return_value="subdomain"):
|
||||
result = self._get_home_page()
|
||||
|
||||
Reference in New Issue
Block a user