Skip to content

Commit 74bf348

Browse files
committed
update to minio path util
1 parent 18d3439 commit 74bf348

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_tasks/test_task_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def test__get_task_live(self):
156156
@pytest.mark.test_server()
157157
def test_get_task(self):
158158
task = openml.tasks.get_task(1, download_data=True) # anneal; crossvalidation
159+
dataset = openml.datasets.get_dataset(task.dataset_id)
159160
assert isinstance(task, OpenMLTask)
160161
assert os.path.exists(
161162
os.path.join(openml.config.get_cache_directory(), "tasks", "1", "task.xml")
@@ -164,7 +165,7 @@ def test_get_task(self):
164165
os.path.join(openml.config.get_cache_directory(), "tasks", "1", "datasplits.arff")
165166
)
166167
assert os.path.exists(
167-
os.path.join(openml.config.get_cache_directory(), "minio","minio", "datasets","0000","0001", "dataset_1.pq")
168+
os.path.join(openml.config.get_cache_directory(), openml.config.get_minio_download_path(dataset._parquet_url))
168169
)
169170

170171
@pytest.mark.test_server()

0 commit comments

Comments
 (0)