Skip to content

test: Mock live server call for clustering tasks (#1649) - #1760

Open
sumitsaraswat362 wants to merge 1 commit into
openml:mainfrom
sumitsaraswat362:fix/mock-dataset-tests
Open

sumitsaraswat362 wants to merge 1 commit into
openml:mainfrom
sumitsaraswat362:fix/mock-dataset-tests

Conversation

@sumitsaraswat362

Copy link
Copy Markdown

Partially addresses #1649.

Replaces the @pytest.mark.production_server() decorator in test_list_clustering_task (in test_task_functions.py) with a mock.patch of requests.Session.request, returning a saved XML response of real clustering tasks.

This prevents the test from hitting the live OpenML production server, removing a point of failure for CI.

Replaces the @pytest.mark.production_server() call in
test_list_clustering_task with a mocked requests.Session.request
using a saved XML response.

Partial fix for openml#1649.
Copilot AI balanced review requested due to automatic review settings October 3, 2026 13:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants