Skip to content

Commit f75b2de

Browse files
committed
Added skip tests
1 parent 5f079ba commit f75b2de

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_datasets/test_dataset_functions.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,7 @@ def test_deletion_of_cache_dir_faulty_download(self, patch):
530530
datasets_cache_dir = os.path.join(openml.config.get_cache_directory(), "datasets")
531531
assert len(os.listdir(datasets_cache_dir)) == 0
532532

533+
@pytest.mark.skip(reason="Pending resolution of #1657")
533534
@pytest.mark.test_server()
534535
def test_publish_dataset(self):
535536
arff_file_path = self.static_cache_dir / "org" / "openml" / "test" / "datasets" / "2" / "dataset.arff"
@@ -689,6 +690,7 @@ def test_attributes_arff_from_df_unknown_dtype(self):
689690
with pytest.raises(ValueError, match=err_msg):
690691
attributes_arff_from_df(df)
691692

693+
@pytest.mark.skip(reason="Pending resolution of #1657")
692694
@pytest.mark.test_server()
693695
def test_create_dataset_numpy(self):
694696
data = np.array([[1, 2, 3], [1.2, 2.5, 3.8], [2, 5, 8], [0, 1, 0]]).T
@@ -723,6 +725,7 @@ def test_create_dataset_numpy(self):
723725
), "Uploaded arff does not match original one"
724726
assert _get_online_dataset_format(dataset.id) == "arff", "Wrong format for dataset"
725727

728+
@pytest.mark.skip(reason="Pending resolution of #1657")
726729
@pytest.mark.test_server()
727730
def test_create_dataset_list(self):
728731
data = [
@@ -778,6 +781,7 @@ def test_create_dataset_list(self):
778781
), "Uploaded ARFF does not match original one"
779782
assert _get_online_dataset_format(dataset.id) == "arff", "Wrong format for dataset"
780783

784+
@pytest.mark.skip(reason="Pending resolution of #1657")
781785
@pytest.mark.test_server()
782786
def test_create_dataset_sparse(self):
783787
# test the scipy.sparse.coo_matrix
@@ -926,6 +930,7 @@ def test_get_online_dataset_format(self):
926930
dataset_id
927931
), "The format of the ARFF files is different"
928932

933+
@pytest.mark.skip(reason="Pending resolution of #1657")
929934
@pytest.mark.test_server()
930935
def test_create_dataset_pandas(self):
931936
data = [
@@ -1151,6 +1156,7 @@ def test_ignore_attributes_dataset(self):
11511156
paper_url=paper_url,
11521157
)
11531158

1159+
@pytest.mark.skip(reason="Pending resolution of #1657")
11541160
@pytest.mark.test_server()
11551161
def test_publish_fetch_ignore_attribute(self):
11561162
"""Test to upload and retrieve dataset and check ignore_attributes"""
@@ -1270,6 +1276,7 @@ def test_create_dataset_row_id_attribute_error(self):
12701276
paper_url=paper_url,
12711277
)
12721278

1279+
@pytest.mark.skip(reason="Pending resolution of #1657")
12731280
@pytest.mark.test_server()
12741281
def test_create_dataset_row_id_attribute_inference(self):
12751282
# meta-information
@@ -1438,6 +1445,7 @@ def test_data_edit_non_critical_field(self):
14381445
edited_dataset = openml.datasets.get_dataset(did)
14391446
assert edited_dataset.description == desc
14401447

1448+
@pytest.mark.skip(reason="Pending resolution of #1657")
14411449
@pytest.mark.test_server()
14421450
def test_data_edit_critical_field(self):
14431451
# Case 2
@@ -1490,6 +1498,7 @@ def test_data_edit_requires_valid_dataset(self):
14901498
description="xor operation dataset",
14911499
)
14921500

1501+
@pytest.mark.skip(reason="Pending resolution of #1657")
14931502
@pytest.mark.test_server()
14941503
def test_data_edit_cannot_edit_critical_field_if_dataset_has_task(self):
14951504
# Need to own a dataset to be able to edit meta-data

tests/test_openml/test_api_calls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def test_too_long_uri(self):
2020
with pytest.raises(openml.exceptions.OpenMLServerError, match="URI too long!"):
2121
openml.datasets.list_datasets(data_id=list(range(10000)))
2222

23+
@pytest.mark.skip(reason="Pending resolution of #1657")
2324
@unittest.mock.patch("time.sleep")
2425
@unittest.mock.patch("requests.Session")
2526
@pytest.mark.test_server()

tests/test_tasks/test_task_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def test_get_task(self):
167167
os.path.join(openml.config.get_cache_directory(), "datasets", "1", "dataset_1.pq")
168168
)
169169

170+
@pytest.mark.skip(reason="Pending resolution of #1657")
170171
@pytest.mark.test_server()
171172
def test_get_task_lazy(self):
172173
task = openml.tasks.get_task(2, download_data=False) # anneal; crossvalidation
@@ -224,6 +225,7 @@ def test_get_task_different_types(self):
224225
# Issue 538, get_task failing with clustering task.
225226
openml.tasks.functions.get_task(126033)
226227

228+
@pytest.mark.skip(reason="Pending resolution of #1657")
227229
@pytest.mark.test_server()
228230
def test_download_split(self):
229231
task = openml.tasks.get_task(1) # anneal; crossvalidation

0 commit comments

Comments
 (0)