test_home: Mark a couple tests as explicitly slow.

This commit is contained in:
Tim Abbott 2017-10-27 15:57:15 -07:00
parent 28b25a66c2
commit fca6df09b0
1 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,7 @@ class HomeTest(ZulipTestCase):
realm_bots_actual_keys = sorted([str(key) for key in page_params['realm_bots'][0].keys()]) realm_bots_actual_keys = sorted([str(key) for key in page_params['realm_bots'][0].keys()])
self.assertEqual(realm_bots_actual_keys, realm_bots_expected_keys) self.assertEqual(realm_bots_actual_keys, realm_bots_expected_keys)
@slow("Creates and subscribes 10 users in a loop. Should use bulk queries.")
def test_num_queries_with_streams(self): def test_num_queries_with_streams(self):
# type: () -> None # type: () -> None
main_user = self.example_user('hamlet') main_user = self.example_user('hamlet')
@ -635,6 +636,7 @@ class HomeTest(ZulipTestCase):
idle_user_msg_list = get_user_messages(long_term_idle_user) idle_user_msg_list = get_user_messages(long_term_idle_user)
self.assertEqual(idle_user_msg_list[-1].content, message) self.assertEqual(idle_user_msg_list[-1].content, message)
@slow("Loads home page data several times testing different cases")
def test_multiple_user_soft_deactivations(self): def test_multiple_user_soft_deactivations(self):
# type: () -> None # type: () -> None
long_term_idle_user = self.example_user('hamlet') long_term_idle_user = self.example_user('hamlet')