Skip to content

Commit

Permalink
drop with_dir() in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmafelix committed Aug 17, 2024
1 parent b7a0343 commit fcff38b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/testthat/test-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ testthat::test_that("vector validity check is cleared", {
withr::local_package("sf")
withr::local_package("terra")
# withr::local_package("chopin")
withr::with_dir(testthat::test_path("../.."), devtools::load_all())
withr::local_options(list(sf_use_s2 = FALSE))

nc <- system.file(package = "sf", "shape/nc.shp")
Expand All @@ -137,7 +136,6 @@ testthat::test_that(".check_id throws error with non-character id", {
# testthat::skip_on_covr()
withr::local_package("sf")
withr::local_options(list(sf_use_s2 = FALSE))
withr::with_dir(testthat::test_path("../.."), devtools::load_all())
input_char <- system.file("gpkg/nc.gpkg", package = "sf")
input_sf <- sf::st_read(input_char)

Expand Down

0 comments on commit fcff38b

Please sign in to comment.