Skip to content

Navigation Menu

Sign in
Sign up

[MNT] Replace Live Server Calls with Mocks in Unit Tests #1649

Open
Labels
Good First IssueIssues suitable for people new to contributing to openml-python! maintenance & CIContinuous integration & package distribution testing

Description

Several tests currently rely on direct connections to the live server (production/test), which can cause race conditions, server overload, and sporadic failures (see #1586). To ensure these remain true unit tests, they should use mocks/patches instead of the remote server.

Steps:

  1. Identify tests using the remote server, e.g., marked with "production_server" or "test_server".
  2. Mock or patch requests.Session in tests relying on openml._api_calls._send_request. Alternatively, higher-level mocking can be used to simplify implementation.

Affected test files (can be separate sub-tasks/PRs):

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueIssues suitable for people new to contributing to openml-python! maintenance & CIContinuous integration & package distribution testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

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