Skip to content

MNT Mock live server call in test_download_task (test_task.py) - #1763

Open
Prakritibhandari07 wants to merge 1 commit into
openml:mainfrom
Prakritibhandari07:fix-test-task-mock-download
Open

Prakritibhandari07 wants to merge 1 commit into
openml:mainfrom
Prakritibhandari07:fix-test-task-mock-download

Conversation

@Prakritibhandari07

Copy link
Copy Markdown

Metadata

Details

This PR mocks the live get_task() call in OpenMLTaskTest.test_download_task (tests/test_tasks/test_task.py) using unittest.mock, so subclasses no longer hit the real OpenML server for this test — part of the broader effort in #1649 to replace live server calls with mocks across the test suite.

I verified tests/test_tasks/test_regression_task.py::test_download_task passes fully offline with this change.

Note: test_get_X_and_Y in subclasses still depends on test_supervised_task.py being mocked separately (see PR #1691, currently open/unmerged) — that's out of scope for this PR.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant