1515from pygmt .exceptions import GMTInvalidInput
1616
1717
18- def test_accessor_gridline_cartesian ():
18+ def test_xarray_accessor_gridline_cartesian ():
1919 """
2020 Check that the accessor returns the correct registration and gtype values for a
2121 Cartesian, gridline-registered grid.
@@ -26,7 +26,7 @@ def test_accessor_gridline_cartesian():
2626 assert grid .gmt .gtype == GridType .CARTESIAN
2727
2828
29- def test_accessor_pixel_geographic ():
29+ def test_xarray_accessor_pixel_geographic ():
3030 """
3131 Check that the accessor returns the correct registration and gtype values for a
3232 geographic, pixel-registered grid.
@@ -37,7 +37,7 @@ def test_accessor_pixel_geographic():
3737 assert grid .gmt .gtype == GridType .GEOGRAPHIC
3838
3939
40- def test_accessor_set_registration ():
40+ def test_xarray_accessor_set_registration ():
4141 """
4242 Check that we can set the registration of a grid.
4343 """
@@ -63,7 +63,7 @@ def test_accessor_set_registration():
6363
6464
6565@pytest .mark .benchmark
66- def test_accessor_set_gtype ():
66+ def test_xarray_accessor_set_gtype ():
6767 """
6868 Check that we can set the gtype of a grid.
6969 """
@@ -87,7 +87,7 @@ def test_accessor_set_gtype():
8787 assert grid .gmt .gtype == GridType .CARTESIAN == 0
8888
8989
90- def test_accessor_set_invalid_registration_and_gtype ():
90+ def test_xarray_accessor_set_invalid_registration_and_gtype ():
9191 """
9292 Check that setting invalid values on registration and gtype do not work.
9393 """
@@ -108,7 +108,7 @@ def test_accessor_set_invalid_registration_and_gtype():
108108 condition = sys .platform == "win32" and Version (__gmt_version__ ) < Version ("6.5.0" ),
109109 reason = "Upstream bug fixed in https://github.com/GenericMappingTools/gmt/pull/7573" ,
110110)
111- def test_accessor_sliced_datacube ():
111+ def test_xarray_accessor_sliced_datacube ():
112112 """
113113 Check that a 2-D grid which is sliced from an n-dimensional datacube works with
114114 accessor methods.
@@ -130,7 +130,7 @@ def test_accessor_sliced_datacube():
130130 Path (fname ).unlink ()
131131
132132
133- def test_accessor_grid_source_file_not_exist ():
133+ def test_xarray_accessor_grid_source_file_not_exist ():
134134 """
135135 Check that the accessor fallbacks to the default registration and gtype when the
136136 grid source file (i.e., grid.encoding["source"]) doesn't exist.
0 commit comments