Skip to content

Commit

Permalink
Add static_earth_relief to grd2cpt tests (GenericMappingTools#1736)
Browse files Browse the repository at this point in the history
  • Loading branch information
willschlitzer authored and Josh Sixsmith committed Dec 21, 2022
1 parent d977457 commit 13f80d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pygmt/tests/baseline/test_grd2cpt.png.dvc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
outs:
- md5: 305e3650aa4ed9a56bec58be3a0d752b
size: 22460
- md5: 6d535fbb53a470a3a12fafeab1cf4f66
size: 22230
path: test_grd2cpt.png
6 changes: 3 additions & 3 deletions pygmt/tests/test_grd2cpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

import pytest
from pygmt import Figure, grd2cpt
from pygmt.datasets import load_earth_relief
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import GMTTempFile
from pygmt.helpers.testing import load_static_earth_relief


@pytest.fixture(scope="module", name="grid")
def fixture_grid():
"""
Load the grid data from the sample earth_relief file.
"""
return load_earth_relief()
return load_static_earth_relief()


@pytest.mark.mpl_image_compare
Expand All @@ -27,7 +27,7 @@ def test_grd2cpt(grid):
fig = Figure()
fig.basemap(frame="a", projection="W0/15c", region="d")
grd2cpt(grid=grid)
fig.colorbar(frame="a2000")
fig.colorbar(frame="a")
return fig


Expand Down

0 comments on commit 13f80d4

Please sign in to comment.