Skip to content

Commit 4024913

Browse files
committed
patch tests
1 parent 4e44fe5 commit 4024913

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

tests/test_tasks/test_task_functions.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ def setUp(self):
2727
def tearDown(self):
2828
super().tearDown()
2929

30-
@pytest.mark.test_server()
31-
def test__get_estimation_procedure_list(self):
32-
estimation_procedures = openml.tasks.functions._get_estimation_procedure_list()
33-
assert isinstance(estimation_procedures, list)
34-
assert isinstance(estimation_procedures[0], dict)
35-
assert (
36-
estimation_procedures[0]["task_type_id"]
37-
== TaskType.SUPERVISED_CLASSIFICATION
38-
)
39-
4030
@pytest.mark.production_server()
4131
@pytest.mark.xfail(reason="failures_issue_1544", strict=False)
4232
def test_list_clustering_task(self):

tests/test_utils/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _mocked_perform_api_call(call, request_method):
5050

5151
@pytest.mark.test_server()
5252
def test_list_all():
53-
openml.utils._list_all(listing_call=openml.tasks.functions._list_tasks)
53+
openml.utils._list_all(listing_call=openml.tasks.functions.list_tasks)
5454

5555

5656
@pytest.mark.test_server()
@@ -65,7 +65,7 @@ def test_list_all_with_multiple_batches(min_number_tasks_on_test_server):
6565
# batches and at the same time do as few batches (roundtrips) as possible.
6666
batch_size = min_number_tasks_on_test_server - 1
6767
batches = openml.utils._list_all(
68-
listing_call=openml.tasks.functions._list_tasks,
68+
listing_call=openml.tasks.functions.list_tasks,
6969
batch_size=batch_size,
7070
)
7171
assert len(batches) >= 2

0 commit comments

Comments
 (0)