Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
16EAGLE committed Apr 16, 2024
1 parent c3a672d commit ad01fee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/testthat/test-basemap.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ skip_on_cran()
context("basemap")

test_that("basemap()", {
# test debug
expect_message(basemap(ext, debug_client = T, verbose = T, class = "png"))

# test nominal
map <- expect_output(expect_is(basemap(ext, map_dir = map_dir, verbose = T, class = "terra"), "SpatRaster"))
expect_equal(dim(map), c(869, 986, 3))
Expand All @@ -26,9 +29,6 @@ test_that("basemap()", {
# test ext error
expect_error(basemap())

# test debug
expect_message(basemap(ext, debug_client = T, class = "png"))

# test no map_token error mapbox
expect_error(basemap(ext, map_service = "mapbox", map_type = "streets", verbose = F))
expect_error(basemap(ext, map_service = "osm_thunderforest", map_type = "cycle", verbose = F))
Expand Down

0 comments on commit ad01fee

Please sign in to comment.