def test_cat_list_input(test_data):
 num_items = CountDistinct(values=test_data.cat_list).value
 bar_builder = BarBuilder(test_data.cat_list)
 bar_builder.create()
 assert (len(bar_builder.comp_glyphs) == num_items)

def test_cat_list_input ( test_data ) : num_items = CountDistinct ( values = test_data . cat_list ) . value bar_builder = BarBuilder ( test_data . cat_list ) bar_builder . create ( ) assert ( len ( bar_builder . comp_glyphs ) == num_items )
given values of categorical data .