Skip to content

[MNT] Mock ontology write requests in dataset tests - #1784

Open
Jayant-kernel wants to merge 2 commits into
openml:mainfrom
Jayant-kernel:maint/mock-ontology-tests-1649
Open

Jayant-kernel wants to merge 2 commits into
openml:mainfrom
Jayant-kernel:maint/mock-ontology-tests-1649

Conversation

@Jayant-kernel

Copy link
Copy Markdown

Metadata

Details

The ontology tests write links to dataset 1, and the multiple-feature test leaves them behind. This replaces the four write cases with mocked HTTP requests so they can run offline without changing server data.

The tests check the add/remove endpoints, posted feature details, and handling of error codes 1105 and 1106. The error cases check the client's response handling; URL validation still belongs to the server.

Checked locally: all 5 offline tests in test_dataset.py pass, along with pre-commit checks.

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