Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Extract mocked_perform_api_call because its independent of object
  • Loading branch information
PGijsbers committed Jul 8, 2023
commit b61566a9c3a9332dbabd35189587d5eac89597e6
10 changes: 5 additions & 5 deletions tests/test_utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
from openml.testing import TestBase


def mocked_perform_api_call(call, request_method):
url = openml.config.server + "/" + call
return openml._api_calls._download_text_file(url)


class OpenMLTaskTest(TestBase):
_multiprocess_can_split_ = True
Comment thread
PGijsbers marked this conversation as resolved.

def mocked_perform_api_call(call, request_method):
# TODO: JvR: Why is this not a staticmethod?
url = openml.config.server + "/" + call
return openml._api_calls._download_text_file(url)

def test_list_all(self):
openml.utils._list_all(listing_call=openml.tasks.functions._list_tasks)
openml.utils._list_all(
Expand Down