Skip to content

Commit 5dd71f5

Browse files
committed
Fix after rebase with master
1 parent 912fc64 commit 5dd71f5

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

mplaltair/tests/baseline_images/test_axis/test_axis_scale_basic_df1-years

Whitespace-only changes.
35.7 KB
Loading

mplaltair/tests/test_axis.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ def test_axis_tickCount(df, x, tickCount):
150150

151151

152152
@pytest.mark.mpl_image_compare(baseline_dir='baseline_images/test_axis')
153-
@pytest.mark.parametrize('df,column,type', [(df_quant, 'log', 'log'), (df_temp, 'years:T', 'time')])
154-
def test_axis_scale_basic(df, column, type):
153+
@pytest.mark.parametrize('df,column,scale_type', [(df_quant, 'log', 'log'), (df_temp, 'years', 'time')])
154+
def test_axis_scale_basic(df, column, scale_type):
155155
chart = alt.Chart(df).mark_point().encode(
156-
alt.X(column, scale=alt.Scale(type=type)),
156+
alt.X(column, scale=alt.Scale(type=scale_type)),
157157
alt.Y('a')
158158
)
159159
mapping = convert(chart)

mplaltair/tests/test_data.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ def test_data_dtype_fail():
8383
for channel in chart.to_dict()['encoding']:
8484
with pytest.raises(NotImplementedError):
8585
dtype = _data._locate_channel_dtype(chart, channel)
86-
assert dtype == 'quantitative'
87-
88-
89-
# TODO: _locate_channel_scale() tests
90-
91-
# TODO: _locate channel_axis() tests
92-
9386

9487
# test date conversion:
9588

0 commit comments

Comments
 (0)