Skip to content

Commit

Permalink
extra URL test
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellmanware committed Aug 27, 2024
1 parent 83b4787 commit 5a02dd0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/testthat/test-download.R
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,17 @@ testthat::test_that("check_urls returns NULL undefined size.", {
)
})

testthat::test_that("check_urls handles size > length(urls)", {
urls <- paste0(
"https://satepsanone.nesdis.noaa.gov/pub/FIRE/web/HMS/Smoke_Polygons/",
"Shapefile/2023/09/hms_smoke20230901.zip"
)
testthat::expect_no_error(
url_status <- check_urls(urls = urls, size = 10, method = "HEAD")
)
testthat::expect_length(url_status, 1)
})

################################################################################
##### download_sink
testthat::test_that("download_sink", {
Expand Down

0 comments on commit 5a02dd0

Please sign in to comment.