@@ -131,20 +131,17 @@ def test_convert_fill_fail():
131131def test_quantitative_shape ():
132132 chart = alt .Chart (df_quant ).mark_point ().encode (alt .Shape ('shape' ))
133133 mapping = convert (chart )
134- assert list (mapping ['marker' ]) == list (df_quant ['shape' ].values )
135134
136135@pytest .mark .xfail (raises = NotImplementedError , reason = "The marker argument in scatter() cannot take arrays" )
137136@pytest .mark .parametrize ("column" , ["years" , "months" , "days" , "hrs" , "combination" ])
138137def test_convert_shape_fail_temporal (column ):
139138 chart = alt .Chart (df ).mark_point ().encode (alt .Shape (column ))
140139 mapping = convert (chart )
141- assert list (mapping ['s' ]) == list (mdates .date2num (df [column ].values ))
142140
143141@pytest .mark .xfail (raises = NotImplementedError , reason = "Merge: the dtype for opacity isn't assumed to be quantitative" )
144142def test_quantitative_opacity_value ():
145143 chart = alt .Chart (df_quant ).mark_point ().encode (opacity = alt .value (.5 ))
146144 mapping = convert (chart )
147- assert mapping ['alpha' ] == 0.5
148145
149146@pytest .mark .xfail (raises = NotImplementedError , reason = "The alpha argument in scatter() cannot take arrays" )
150147def test_quantitative_opacity_array ():
@@ -199,8 +196,6 @@ def test_quantitative_x_count_y():
199196 df_count = pd .DataFrame ({"a" : [1 , 1 , 2 , 3 , 5 ], "b" : [1.4 , 1.4 , 2.9 , 3.18 , 5.3 ]})
200197 chart = alt .Chart (df_count ).mark_point ().encode (alt .X ('a' ), alt .Y ('count()' ))
201198 mapping = convert (chart )
202- assert list (mapping ['x' ]) == list (df_count ['a' ].values )
203- assert list (mapping ['y' ]) == list (df_count .groupby (['a' ]).count ().values )
204199
205200@pytest .mark .xfail (raises = NotImplementedError , reason = "specifying timeUnit is not supported yet" )
206201def test_timeUnit ():
0 commit comments