diff --git a/climada/hazard/test/test_trop_cyclone.py b/climada/hazard/test/test_trop_cyclone.py index 8b2e8e1cb8..defcc4da61 100644 --- a/climada/hazard/test/test_trop_cyclone.py +++ b/climada/hazard/test/test_trop_cyclone.py @@ -29,7 +29,7 @@ import xarray as xr from climada.util import ureg -from climada.util.api_client import Client +from climada.test import get_test_file from climada.hazard.tc_tracks import TCTracks from climada.hazard.trop_cyclone import ( TropCyclone, get_close_centroids, _vtrans, _B_holland_1980, _bs_holland_2008, @@ -44,8 +44,7 @@ TEST_TRACK = DATA_DIR.joinpath("trac_brb_test.csv") TEST_TRACK_SHORT = DATA_DIR.joinpath("trac_short_test.csv") -CENTR_TEST_BRB = Centroids.from_hdf5( - Client().get_dataset_file(name='centr_test_brb', status='test_dataset')) +CENTR_TEST_BRB = Centroids.from_hdf5(get_test_file(name='centr_test_brb', format='hdf5')) class TestReader(unittest.TestCase):