Skip to content

Commit 036e54c

Browse files
authored
Migrate Figure.grdcontour tests to dvc
Related to #1131.
1 parent 819fc1d commit 036e54c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pygmt/tests/test_grdcontour.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ def fixture_grid():
2222
return load_earth_relief(registration="gridline")
2323

2424

25-
@check_figures_equal()
25+
@pytest.mark.mpl_image_compare
2626
def test_grdcontour(grid):
2727
"""
2828
Plot a contour image using an xarray grid with fixed contour interval.
2929
"""
30-
fig_ref, fig_test = Figure(), Figure()
30+
fig = Figure()
3131
kwargs = dict(interval="1000", projection="W0/6i")
32-
fig_ref.grdcontour("@earth_relief_01d_g", **kwargs)
33-
fig_test.grdcontour(grid, **kwargs)
34-
return fig_ref, fig_test
32+
fig.grdcontour(grid, **kwargs)
33+
return fig
3534

3635

3736
@check_figures_equal()

0 commit comments

Comments
 (0)