Skip to content

Commit

Permalink
remove unused test elements
Browse files Browse the repository at this point in the history
  • Loading branch information
kgoebber committed Sep 8, 2023
1 parent 0d77f5b commit c123c31
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions tests/plots/test_declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,8 @@ def test_projection_object(ccrs, cfeature):


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.009)
def test_colorfill(cfeature):
@needs_cartopy
def test_colorfill():
"""Test that we can use ContourFillPlot."""
data = xr.open_dataset(get_test_data('narr_example.nc', as_file_obj=False))

Expand All @@ -614,6 +615,33 @@ def test_colorfill(cfeature):
return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.009)
@needs_cartopy
def test_colorfill_args():
"""Test that we can use ContourFillPlot."""
data = xr.open_dataset(get_test_data('narr_example.nc', as_file_obj=False))

contour = FilledContourPlot()
contour.data = data
contour.level = 700 * units.hPa
contour.field = 'Temperature'
contour.colormap = 'coolwarm'
contour.colorbar = 'vertical'
contour.mpl_args = {'alpha': 0.6}

panel = MapPanel()
panel.area = (-110, -60, 25, 55)
panel.layers = []
panel.plots = [contour]

pc = PanelContainer()
pc.panel = panel
pc.size = (12, 8)
pc.draw()

return pc.figure


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.02)
def test_colorfill_with_image_range(cfeature):
"""Test that we can use ContourFillPlot with image_range bounds."""
Expand Down Expand Up @@ -669,7 +697,8 @@ def test_colorfill_with_normalize_instance_image_range(cfeature):


@pytest.mark.mpl_image_compare(remove_text=True, tolerance=0.02)
def test_colorfill_horiz_colorbar(cfeature):
@needs_cartopy
def test_colorfill_horiz_colorbar():
"""Test that we can use ContourFillPlot with a horizontal colorbar."""
data = xr.open_dataset(get_test_data('narr_example.nc', as_file_obj=False))

Expand Down

0 comments on commit c123c31

Please sign in to comment.