Skip to content

Commit

Permalink
remove test for datapkg arg deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
PietrH committed Sep 4, 2023
1 parent 6c6ad32 commit a8d4b1c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
11 changes: 0 additions & 11 deletions tests/testthat/test-get_rai.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,3 @@ test_that("life_stage filters data correctly", {
ignore_attr = TRUE
)
})

test_that("Argument datapkg is deprecated: warning returned", {
expect_warning(
rlang::with_options(
lifecycle_verbosity = "warning",
get_rai(datapkg = mica)
),
regexp = "The `datapkg` argument of `get_rai()` is deprecated as of camtraptor 0.16.0.",
fixed = TRUE
)
})
11 changes: 0 additions & 11 deletions tests/testthat/test-get_record_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,3 @@ test_that("filtering predicates are allowed and work well", {
dplyr::pull(locationName)
testthat::expect_identical(stations, stations_calculate)
})

test_that("Argument datapkg is deprecated: warning returned", {
expect_warning(
rlang::with_options(
lifecycle_verbosity = "warning",
get_record_table(datapkg = mica)
),
regexp = "The `datapkg` argument of `get_record_table()` is deprecated as of camtraptor 0.16.0.",
fixed = TRUE
)
})
11 changes: 0 additions & 11 deletions tests/testthat/test-map_dep.R
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,3 @@ test_that("map_dep() returns a leaflet", {
expect_no_error(map_dep(mica, feature = "n_species"))
expect_no_message(map_dep(mica, feature = "n_species"))
})

test_that("Argument datapkg is deprecated: warning returned", {
expect_warning(
rlang::with_options(
lifecycle_verbosity = "warning",
map_dep(datapkg = mica, feature = "n_obs")
),
regexp = "The `datapkg` argument of `map_dep()` is deprecated as of camtraptor 0.16.0.",
fixed = TRUE
)
})

0 comments on commit a8d4b1c

Please sign in to comment.