Skip to content

Commit

Permalink
Migrate Figure.grdcontour tests to dvc
Browse files Browse the repository at this point in the history
Related to #1131.
  • Loading branch information
michaelgrund committed Apr 1, 2021
1 parent 819fc1d commit 036e54c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pygmt/tests/test_grdcontour.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@ def fixture_grid():
return load_earth_relief(registration="gridline")


@check_figures_equal()
@pytest.mark.mpl_image_compare
def test_grdcontour(grid):
"""
Plot a contour image using an xarray grid with fixed contour interval.
"""
fig_ref, fig_test = Figure(), Figure()
fig = Figure()
kwargs = dict(interval="1000", projection="W0/6i")
fig_ref.grdcontour("@earth_relief_01d_g", **kwargs)
fig_test.grdcontour(grid, **kwargs)
return fig_ref, fig_test
fig.grdcontour(grid, **kwargs)
return fig


@check_figures_equal()
Expand Down

0 comments on commit 036e54c

Please sign in to comment.