tests/testthat/test-ojo_collect.R

test_that("ojo_collect works in interactive mode", {
  skip_on_runiverse()

  expect_no_error({
    ojo_tbl("case") |>
      head(1) |>
      ojo_collect()
  })

  expect_s3_class(
    ojo_tbl("case") |>
      head(1) |>
      ojo_collect(),
    "tbl_df"
  )

  withr::deferred_run(envir = ojo_env())
})
openjusticeok/ojodb documentation built on Aug. 4, 2024, 3:25 p.m.