DavisVaughan / furrr

Apply Mapping Functions in Parallel using Futures
https://furrr.futureverse.org/
Other
695 stars 39 forks source link

Use `expect_snapshot()` on deprecation warning output #185

Closed DavisVaughan closed 3 years ago

DavisVaughan commented 3 years ago

i.e. this warning changed in dev lifecycle so we need to use something more robust to test against

test_that("can use deprecated `future_options()`", {
  expect_identical(
    expect_deprecated(
      future_options(),
      "`future_options[(][)]` is deprecated as of furrr 0.2.0"
    ),
    furrr_options()
  )
  expect_identical(
    expect_deprecated(
      future_options(globals = "x", packages = "dplyr", seed = 1, lazy = TRUE, scheduling = 2)
    ),
    furrr_options(globals = "x", packages = "dplyr", seed = 1, lazy = TRUE, scheduling = 2)
  )
})
DavisVaughan commented 3 years ago

78e72ba2ffbdd71bcee2d7cf0c03e1168ee227e4