def test_verb_exists(self):
     self.assertTrue(
         helper.check_if_column_exist(self.cursor, 'endpoints', 'verb'))
示例#2
0
 def test_source_type_on_authtokens_dne(self):
     self.assertFalse(
         helper.check_if_column_exist(self.cursor, 'authtokens',
                                      'source_type'))
示例#3
0
 def test_auth_on_users_does_not_exist(self):
     self.assertFalse(
         helper.check_if_column_exist(self.cursor, 'users', 'auth'))
示例#4
0
 def test_modaction_in_temporary_tables(self):
     self.assertTrue(
         helper.check_if_column_exist(self.cursor, 'temporary_bans',
                                      'modaction_id'))
 def test_response_hist_new_desc_dne(self):
     self.assertFalse(
         helper.check_if_column_exist(self.cursor, 'response_histories',
                                      'new_desc'))
 def test_password_digest_on_users_exists(self):
     self.assertTrue(
         helper.check_if_column_exist(self.cursor, 'users',
                                      'password_digest'))
 def test_updated_at_exists(self):
     self.assertTrue(
         helper.check_if_column_exist(self.cursor, 'endpoint_params',
                                      'updated_at'))
 def test_response_desc_dne(self):
     self.assertFalse(
         helper.check_if_column_exist(self.cursor, 'responses',
                                      'description'))
示例#9
0
 def test_password_digest_on_users_does_not_exist(self):
     self.assertFalse(
         helper.check_if_column_exist(self.cursor, 'users',
                                      'password_digest'))
 def test_source_id_on_authtokens(self):
     self.assertTrue(
         helper.check_if_column_exist(self.cursor, 'authtokens', 'source_id')
     )
示例#11
0
 def test_new_verb_dne(self):
     self.assertFalse(
         helper.check_if_column_exist(
             self.cursor, 'endpoint_history', 'new_verb'
         )
     )
示例#12
0
 def test_new_email_verified_exists(self):
     self.assertTrue(
         helper.check_if_column_exist(self.cursor,
                                      'user_demographic_history',
                                      'new_email_verified'))
示例#13
0
 def test_old_verb_exists(self):
     self.assertTrue(
         helper.check_if_column_exist(
             self.cursor, 'endpoint_history', 'old_verb'
         )
     )
示例#14
0
 def test_response_hist_old_desc_exists(self):
     self.assertTrue(
         helper.check_if_column_exist(self.cursor, 'response_histories',
                                      'old_desc'))
 def test_old_email_verified_dne(self):
     self.assertFalse(
         helper.check_if_column_exist(self.cursor,
                                      'user_demographic_history',
                                      'old_email_verified'))