Skip to content

Test the Python examples on the documentation homepage - #1795

Open
Saikushal185 wants to merge 2 commits into
openml:mainfrom
Saikushal185:maint-homepage-examples
Open

Saikushal185 wants to merge 2 commits into
openml:mainfrom
Saikushal185:maint-homepage-examples

Conversation

@Saikushal185

Copy link
Copy Markdown

Metadata

Details

Pytest collects the Python blocks directly from the Markdown homepage and runs each in an independent namespace. Local dataset, task, split, and suite objects stand in for server data. The examples exercise target selection, fold lookup, and suite iteration without contacting OpenML.

Verified with python -m pytest -q tests/test_homepage_examples.py (three passed) and Ruff on the new test file.

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.

Home page example should be covered by CI

1 participant