def test_values_only_input(df_with_cat_index):
 bar_builder = BarBuilder(df_with_cat_index, values='col1')
 bar_builder.create()
 assert (bar_builder.attributes['label'].columns[0] == 'index')

def test_values_only_input ( df_with_cat_index ) : bar_builder = BarBuilder ( df_with_cat_index , values = 'col1' ) bar_builder . create ( ) assert ( bar_builder . attributes [ 'label' ] . columns [ 0 ] == 'index' )
given values only input .