Skip to content

Commit 0638dab

Browse files
committed
Remove the test_clib_read_data_image_actual_grid test
1 parent dc1a649 commit 0638dab

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pygmt/tests/test_clib_read_data.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -169,23 +169,6 @@ def test_clib_read_data_image_two_steps():
169169
assert image.data
170170

171171

172-
def test_clib_read_data_image_actual_grid():
173-
"""
174-
Test the Session.read_data method for image, but actually the file is a grid.
175-
"""
176-
with Session() as lib:
177-
data_ptr = lib.read_data(
178-
"@earth_relief_01d_p", kind="image", mode="GMT_CONTAINER_ONLY"
179-
)
180-
image = data_ptr.contents
181-
header = image.header.contents
182-
assert header.n_rows == 180
183-
assert header.n_columns == 360
184-
assert header.wesn[:] == [-179.5, 179.5, -89.5, 89.5]
185-
# Explicitly check n_bands. Grid has only one band.
186-
assert header.n_bands == 1
187-
188-
189172
def test_clib_read_data_fails():
190173
"""
191174
Test that the Session.read_data method raises an exception if there are errors.

0 commit comments

Comments
 (0)