@@ -66,13 +66,12 @@ def test_get_iris_aggregator_mean(operator, kwargs):
6666 assert agg_kwargs == kwargs
6767
6868
69- @pytest .mark .parametrize ("kwargs" , [{}, {"weights" : True }])
7069@pytest .mark .parametrize ("operator" , ["median" , "mEdIaN" , "MEDIAN" ])
71- def test_get_iris_aggregator_median (operator , kwargs ):
70+ def test_get_iris_aggregator_median (operator ):
7271 """Test ``get_iris_aggregator``."""
73- (agg , agg_kwargs ) = get_iris_aggregator (operator , ** kwargs )
72+ (agg , agg_kwargs ) = get_iris_aggregator (operator )
7473 assert agg == iris .analysis .MEDIAN
75- assert agg_kwargs == kwargs
74+ assert agg_kwargs == {}
7675
7776
7877@pytest .mark .parametrize ("operator" , ["min" , "MiN" , "MIN" ])
@@ -172,6 +171,14 @@ def test_get_iris_aggregator_missing_kwarg():
172171 get_iris_aggregator ("percentile" )
173172
174173
174+ def test_get_iris_aggregator_no_weights_allowed ():
175+ """Test ``get_iris_aggregator``."""
176+ operator = "median"
177+ kwargs = {"weights" : True }
178+ with pytest .raises (ValueError ):
179+ get_iris_aggregator (operator , ** kwargs )
180+
181+
175182@pytest .mark .parametrize (
176183 "aggregator,result" ,
177184 [
0 commit comments