@@ -501,7 +501,7 @@ def test_deletion_of_cache_dir(self):
501501
502502 @pytest .mark .test_server ()
503503 def test_publish_dataset (self ):
504- arff_file_path = self .static_cache_dir / "org" / "openml" / "test" / "datasets " / "2 " / "dataset .arff"
504+ arff_file_path = self .static_cache_dir / "org" / "openml" / "test" / "data " / "download " / "1666876" / "phpFsFYVN" / "body .arff"
505505 dataset = OpenMLDataset (
506506 "anneal" ,
507507 "test" ,
@@ -1366,8 +1366,8 @@ def test_get_dataset_cache_format_feather(self):
13661366 # Check if dataset is written to cache directory using feather
13671367 cache_dir = openml .config .get_cache_directory ()
13681368 cache_dir_for_id = os .path .join (cache_dir , "datasets" , "128" )
1369- feather_file = os .path .join (cache_dir ,"downloads" , " data" ,"v1" ,"download" ,"128" ,"iris.arff" , "dataset .feather" )
1370- pickle_file = os .path .join (cache_dir ,"downloads" , " data" ,"v1" ,"download" ,"128" ,"iris.arff" , "dataset .feather.attributes.pkl.py3" )
1369+ feather_file = os .path .join (cache_dir ,"data" ,"v1" ,"download" ,"128" ,"iris.arff" , "body .feather" )
1370+ pickle_file = os .path .join (cache_dir ,"data" ,"v1" ,"download" ,"128" ,"iris.arff" , "body .feather.attributes.pkl.py3" )
13711371 data = pd .read_feather (feather_file )
13721372 assert os .path .isfile (feather_file ), "Feather file is missing"
13731373 assert os .path .isfile (pickle_file ), "Attributes pickle file is missing"
@@ -1859,17 +1859,17 @@ def _dataset_description_is_downloaded(did: int):
18591859
18601860
18611861def _dataset_qualities_is_downloaded (did : int ):
1862- cache_directory = Path (openml .config .get_cache_directory ()) / "downloads/ data/qualities"
1863- return (cache_directory / str (did ) / "qualities .xml" ).exists ()
1862+ cache_directory = Path (openml .config .get_cache_directory ()) / "api/v1/xml/ data/qualities/ "
1863+ return (cache_directory / str (did ) / "body .xml" ).exists ()
18641864
18651865
18661866def _dataset_features_is_downloaded (did : int ):
1867- cache_directory = Path (openml .config .get_cache_directory ()) / "downloads/ data/features"
1868- return (cache_directory / str (did ) / "features .xml" ).exists ()
1867+ cache_directory = Path (openml .config .get_cache_directory ()) / "api/v1/xml/ data/features/"
1868+ return (cache_directory / str (did ) / "body .xml" ).exists ()
18691869
18701870
18711871def _dataset_data_file_is_downloaded (did : int ):
1872- cache_directory = Path (openml .config .get_cache_directory ()) / "minio/minio/ datasets/0000/0001"
1872+ cache_directory = Path (openml .config .get_cache_directory ()) / "minio/datasets/0000/0001"
18731873 if not cache_directory .exists ():
18741874 return False
18751875 return any (f .suffix in (".pq" , ".arff" ) for f in cache_directory .iterdir ())
0 commit comments