From bdbb794d2a1c1a1d168a3129a8c872ddb01e83e0 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Wed, 24 Apr 2024 13:26:04 +0800 Subject: [PATCH] Use unique earth_age tiles in test_dataset_to_strings_with_none_values --- pygmt/helpers/caching.py | 2 ++ pygmt/tests/test_datatypes_dataset.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pygmt/helpers/caching.py b/pygmt/helpers/caching.py index b81e8384758..714f12d890e 100644 --- a/pygmt/helpers/caching.py +++ b/pygmt/helpers/caching.py @@ -42,6 +42,8 @@ def cache_data(): # Names like @N35E135.earth_relief_03s_g.nc are for internal use only. # The naming scheme may change. DO NOT USE IT IN YOUR SCRIPTS. "@N00W030.earth_age_01m_g.nc", + "@N30E060.earth_age_01m_g.nc", + "@N30E090.earth_age_01m_g.nc", "@N00W030.earth_faa_01m_p.nc", "@N00W030.earth_geoid_01m_g.nc", "@S30W060.earth_mag_02m_p.nc", diff --git a/pygmt/tests/test_datatypes_dataset.py b/pygmt/tests/test_datatypes_dataset.py index 21871f9f60a..dd7e4073852 100644 --- a/pygmt/tests/test_datatypes_dataset.py +++ b/pygmt/tests/test_datatypes_dataset.py @@ -151,7 +151,7 @@ def test_dataset_to_strings_with_none_values(): See the bug report at https://github.com/GenericMappingTools/pygmt/issues/3170. """ - tiles = ["@N30W120.earth_relief_15s_p.nc", "@N00W010.earth_relief_15s_p.nc"] + tiles = ["@N30E060.earth_age_01m_g.nc", "@N30E090.earth_age_01m_g.nc"] paths = which(fname=tiles, download="a") assert len(paths) == 2 # 'paths' may contain an empty string or not, depending on if the tiles are cached.