Пример #1
0
 def test_change_index_columns(self, add_index, drop_index):
     utils.change_index_columns(self.engine, 'test_table', 'a_index',
                                ('a',))
     utils.drop_index.assert_called_once_with(self.engine, 'test_table',
                                              'a_index')
     utils.add_index.assert_called_once_with(self.engine, 'test_table',
                                             'a_index', ('a',))
Пример #2
0
 def test_change_index_columns(self, add_index, drop_index):
     utils.change_index_columns(self.engine, 'test_table', 'a_index',
                                ('a', ))
     utils.drop_index.assert_called_once_with(self.engine, 'test_table',
                                              'a_index')
     utils.add_index.assert_called_once_with(self.engine, 'test_table',
                                             'a_index', ('a', ))
Пример #3
0
 def test_change_index_columns(self, add_index, drop_index):
     utils.change_index_columns(self.engine, "test_table", "a_index", ("a",))
     utils.drop_index.assert_called_once_with(self.engine, "test_table", "a_index")
     utils.add_index.assert_called_once_with(self.engine, "test_table", "a_index", ("a",))