tests/testthat/test_list_oml_runs.R

skip_on_cran()

test_that("list_oml_runs", {
  tab = list_oml_runs(limit = 10)
  expect_data_table(tab, nrows = 10)

  expect_names(names(tab),
    type = "strict",
    must.include = c("run_id", "task_id", "setup_id", "flow_id", "uploader")
  )

  expect_data_table(list_oml_runs(run_id = 999999999), nrows = 0L)
})

# # Test server not working properly
# test_that("list_oml_runs", {
#   tab = list_oml_runs(limit = 10, test_server = TRUE)
#   expect_data_table(tab)
# })

Try the mlr3oml package in your browser

Any scripts or data that you put into this service are public.

mlr3oml documentation built on Aug. 26, 2025, 5:08 p.m.