Skip to content

Comments

[MNT] Remove TestBase inheritance from test_trace.py#1687

Open
moksha-hub wants to merge 1 commit intoopenml:mainfrom
moksha-hub:mnt/mock-test-trace
Open

[MNT] Remove TestBase inheritance from test_trace.py#1687
moksha-hub wants to merge 1 commit intoopenml:mainfrom
moksha-hub:mnt/mock-test-trace

Conversation

@moksha-hub
Copy link

@moksha-hub moksha-hub commented Feb 23, 2026

  • Removed unnecessary TestBase inheritance from test_trace.py
  • Converted tests to pure pytest-style functions
  • All tests in this file are pure unit tests that don't make any server calls - they only test OpenMLRunTrace and OpenMLTraceIteration classes with local data

Reference Issue

Fixes #1649 (tests/test_runs/test_trace.py)

Test Run

tests/test_runs/test_trace.py::test_get_selected_iteration PASSED
tests/test_runs/test_trace.py::test_initialization PASSED
tests/test_runs/test_trace.py::test_duplicate_name PASSED

The tests in test_trace.py are pure unit tests that don't make any
server calls. They only test OpenMLRunTrace and OpenMLTraceIteration
classes with local data. This change removes unnecessary TestBase
inheritance and converts to pytest-style tests.

Reference Issue: openml#1649
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.

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

1 participant