Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jan 27, 2021
1 parent 9e75b06 commit 17aa09c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-occ_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ test_that("geometry inputs work as expected", {
"geometry is big, querying BBOX, then pruning results to polygon")

# use 'geom_big=axe'
skip_if_not_installed("sf")
vcr::use_cassette("occ_data_geometry_ee_gg", {
ee <- occ_data(geometry = wkt, geom_big = "axe", limit = 30)
## more calls
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-occ_search.r
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ test_that("geometry inputs work as expected", {
"geometry is big, querying BBOX, then pruning results to polygon")
}, preserve_exact_body_bytes = TRUE)

skip_if_not_installed("sf")
vcr::use_cassette("occ_search_geometry_ee_gg", {
# use 'geom_big=axe'
ee <- occ_search(geometry = wkt, geom_big = "axe", limit = 30)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-wkt_parse.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ wkt <- "POLYGON((13.26349675655365 52.53991761181831,18.36115300655365 54.114455
wkt <- gsub("\n", " ", wkt)

test_that("wkt_parse", {
skip_if_not_installed("sf")

# geom_big=bbox
aa <- wkt_parse(wkt, geom_big = "bbox")
expect_is(aa, "character")
Expand Down

0 comments on commit 17aa09c

Please sign in to comment.