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',))
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', ))
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",))