Skip to content

Commit d4e3758

Browse files
authored
Fix test_plot_shapefile by downloading cache files first (#1789)
1 parent 103feaa commit d4e3758

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pygmt/tests/test_plot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import pandas as pd
1010
import pytest
1111
import xarray as xr
12-
from pygmt import Figure
12+
from pygmt import Figure, which
1313
from pygmt.exceptions import GMTInvalidInput
1414
from pygmt.helpers import GMTTempFile
1515

@@ -549,6 +549,8 @@ def test_plot_shapefile():
549549
550550
See https://github.com/GenericMappingTools/pygmt/issues/1616.
551551
"""
552+
datasets = ["@RidgeTest" + suffix for suffix in [".shp", ".shx", ".dbf", "prj"]]
553+
which(fname=datasets, download="a")
552554
fig = Figure()
553555
fig.plot(data="@RidgeTest.shp", pen="1p")
554556
return fig

0 commit comments

Comments
 (0)