@pytest.fixture(params=sorted(MIXIN_COLS))
def mixin_cols(request):
 cols = OrderedDict()
 mixin_cols = deepcopy(MIXIN_COLS)
 cols['i'] = table.Column([0, 1, 2, 3], name='i')
 cols['a'] = table.Column(['a', 'b', 'b', 'c'], name='a')
 cols['b'] = table.Column(['b', 'c', 'a', 'd'], name='b')
 cols['m'] = mixin_cols[request.param]
 return cols

@ pytest . fixture ( params = sorted ( MIXIN_COLS ) ) def mixin_cols ( request ) : cols = OrderedDict ( ) mixin_cols = deepcopy ( MIXIN_COLS ) cols [ 'i' ] = table . Column ( [ 0 , 1 , 2 , 3 ] , name = 'i' ) cols [ 'a' ] = table . Column ( [ 'a' , 'b' , 'b' , 'c' ] , name = 'a' ) cols [ 'b' ] = table . Column ( [ 'b' , 'c' , 'a' , 'd' ] , name = 'b' ) cols [ 'm' ] = mixin_cols [ request . param ] return cols
fixture to return a set of columns for mixin testing which includes an index column i .