Fix unit test with plotting

pull/153/head
Frh 2020-04-19 15:07:59 -07:00
parent f37ed50fed
commit 8ed4cdf399
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,8 @@ def test_text_plot():
return camelot.plot(tables[0], kind='text') return camelot.plot(tables[0], kind='text')
@pytest.mark.skipif(LEGACY_MATPLOTLIB,
reason="depends on a recent version of MatPlotLib")
@pytest.mark.mpl_image_compare( @pytest.mark.mpl_image_compare(
baseline_dir="files/baseline_plots", remove_text=True) baseline_dir="files/baseline_plots", remove_text=True)
def test_grid_plot(): def test_grid_plot():
@ -71,6 +73,8 @@ def test_stream_contour_plot():
return camelot.plot(tables[0], kind='contour') return camelot.plot(tables[0], kind='contour')
@pytest.mark.skipif(LEGACY_MATPLOTLIB,
reason="depends on a recent version of MatPlotLib")
@pytest.mark.mpl_image_compare( @pytest.mark.mpl_image_compare(
baseline_dir="files/baseline_plots", remove_text=True) baseline_dir="files/baseline_plots", remove_text=True)
def test_line_plot(): def test_line_plot():