def test_get_set_aggregator(agg_func): """Test getter and setter for Aggregator.func""" agg_func_name, _ = agg_func agg = Aggregator(agg_func_name) assert agg.func == agg_func_name agg.func = "sum" assert agg.func == "sum"
def test_get_set_aggregator(agg_func): """Test getter and setter for Aggregator.func""" agg_func_name, _ = agg_func agg = Aggregator(agg_func_name) if isinstance(agg_func_name, dict): assert agg.func == agg_func_name["func"] else: assert agg.func == agg_func_name agg.func = "sum" assert agg.func == "sum"