tests/testthat/test-relational.R

test_that("rel_try() with reason", {
  withr::local_envvar(DUCKPLYR_FALLBACK_INFO = TRUE, DUCKPLYR_FORCE = FALSE)

  expect_snapshot({
    rel_try(NULL,
      "Not affected" = FALSE,
      "Affected" = TRUE,
      {
      }
    )
  })
})
duckdblabs/duckplyr documentation built on Nov. 6, 2024, 10 p.m.