Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openml/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def setUp(self, n_levels: int = 1, tmpdir_suffix: str = "") -> None:

self.cached = True
openml.config.apikey = TestBase.apikey
self.production_server = "https://openml.org/api/v1/xml"
self.production_server = "https://www.openml.org/api/v1/xml"
openml.config.server = TestBase.test_server
openml.config.avoid_duplicate_runs = False
openml.config.set_root_cache_directory(str(self.workdir))
Expand Down
16 changes: 8 additions & 8 deletions tests/test_datasets/test_dataset_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ def test__download_minio_file_object_does_not_exist(self):
FileNotFoundError,
r"Object at .* does not exist",
_download_minio_file,
source="http://openml1.win.tue.nl/dataset20/i_do_not_exist.pq",
source="http://data.openml.org/dataset20/i_do_not_exist.pq",
destination=self.workdir,
exists_ok=True,
)

def test__download_minio_file_to_directory(self):
_download_minio_file(
source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
source="http://data.openml.org/dataset20/dataset_20.pq",
destination=self.workdir,
exists_ok=True,
)
Expand All @@ -353,7 +353,7 @@ def test__download_minio_file_to_directory(self):
def test__download_minio_file_to_path(self):
file_destination = os.path.join(self.workdir, "custom.pq")
_download_minio_file(
source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
source="http://data.openml.org/dataset20/dataset_20.pq",
destination=file_destination,
exists_ok=True,
)
Expand All @@ -368,15 +368,15 @@ def test__download_minio_file_raises_FileExists_if_destination_in_use(self):
self.assertRaises(
FileExistsError,
_download_minio_file,
source="http://openml1.win.tue.nl/dataset20/dataset_20.pq",
source="http://data.openml.org/dataset20/dataset_20.pq",
destination=str(file_destination),
exists_ok=False,
)

def test__download_minio_file_works_with_bucket_subdirectory(self):
file_destination = Path(self.workdir, "custom.pq")
_download_minio_file(
source="http://openml1.win.tue.nl/dataset61/dataset_61.pq",
source="http://data.openml.org/dataset61/dataset_61.pq",
destination=file_destination,
exists_ok=True,
)
Expand All @@ -386,7 +386,7 @@ def test__download_minio_file_works_with_bucket_subdirectory(self):

def test__get_dataset_parquet_not_cached(self):
description = {
"oml:parquet_url": "http://openml1.win.tue.nl/dataset20/dataset_20.pq",
"oml:parquet_url": "http://data.openml.org/dataset20/dataset_20.pq",
"oml:id": "20",
}
path = _get_dataset_parquet(description, cache_directory=self.workdir)
Expand All @@ -400,7 +400,7 @@ def test__get_dataset_parquet_is_cached(self, patch):
"_download_parquet_url should not be called when loading from cache",
)
description = {
"oml:parquet_url": "http://openml1.win.tue.nl/dataset30/dataset_30.pq",
"oml:parquet_url": "http://data.openml.org/dataset30/dataset_30.pq",
"oml:id": "30",
}
path = _get_dataset_parquet(description, cache_directory=None)
Expand All @@ -409,7 +409,7 @@ def test__get_dataset_parquet_is_cached(self, patch):

def test__get_dataset_parquet_file_does_not_exist(self):
description = {
"oml:parquet_url": "http://openml1.win.tue.nl/dataset20/does_not_exist.pq",
"oml:parquet_url": "http://data.openml.org/dataset20/does_not_exist.pq",
"oml:id": "20",
}
path = _get_dataset_parquet(description, cache_directory=self.workdir)
Expand Down
Loading