Skip to content

Commit 737a6e5

Browse files
committed
Remove test_canvas_like (#947)
1 parent bfb3ae9 commit 737a6e5

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

xrspatial/tests/test_utils.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,7 @@
44
import warnings
55

66

7-
from xrspatial.datasets import make_terrain
87
from xrspatial import utils
9-
from xrspatial.tests.general_checks import dask_array_available
10-
11-
12-
try:
13-
import datashader # noqa: F401
14-
_has_datashader = True
15-
except ImportError:
16-
_has_datashader = False
17-
18-
19-
@pytest.mark.skipif(not _has_datashader, reason="datashader not installed")
20-
@dask_array_available
21-
def test_canvas_like():
22-
# aspect ratio is 1:1
23-
terrain_shape = (1000, 1000)
24-
terrain = make_terrain(shape=terrain_shape)
25-
terrain_res = utils.canvas_like(terrain, width=50)
26-
assert terrain_res.shape == (50, 50)
278

289

2910
def test_warn_if_unit_mismatch_degrees_horizontal_elevation_vertical(monkeypatch):

0 commit comments

Comments
 (0)