Skip to content

Navigation Menu

Sign in
Sign up

feat: #1708 - [DOC] Update documentation for running tests with local services - #1710

Open
ravencore06 wants to merge 2 commits into
openml:main from
ravencore06:doc/local-services-testing
Open

feat: #1708 - [DOC] Update documentation for running tests with local services #1710
ravencore06 wants to merge 2 commits into
openml:main from
ravencore06:doc/local-services-testing

Conversation

@ravencore06

@ravencore06 ravencore06 commented Mar 11, 2026

Copy link
Copy Markdown

Summary of Changes:

  1. openml/config.py - Added local services support:

    • New constant OPENML_USE_LOCAL_SERVICES_ENV_VAR = "OPENML_USE_LOCAL_SERVICES"
    • New constant LOCAL_SERVER_URL = "http://localhost:8080"
    • New function use_local_services() to check if local services should be used
  2. tests/conftest.py- Updated test fixture:

    • Modified with_server fixture to check use_local_services() and use local server URL when enabled
  3. docs/developer_setup.md - Added documentation:

    • New section "Running Tests with Local Services" with:
      • Prerequisites (start local Docker services)
      • Environment variable setup for Windows/Linux
      • Example pytest commands

Why this change:
The CI recently switched to running tests against local services using Docker instead of the remote test server (PRs #1629, #1697). Contributors need documentation on how to run tests against these local services for development.

- Make OpenMLSetup inherit from OpenMLBase to enable tagging
- Add OpenMLSetup to _get_rest_api_type_alias mapping
- Add test_tagging test for push_tag and remove_tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /