tests/testthat/test-edl_s3.R

test_that("edl_s3", {

  skip_on_cran()
  skip_if_offline()
  # tokens can only be used inside S3
  p <-  edl_s3_token(prompt_for_netrc = FALSE)
  expect_type(p, "list")
})


test_that("edl_unset_s3", {

  x <- edl_unset_s3()
  expect_true(x)

})

test_that("edl_unset_s3", {

  href <- lpdacc_example_url()
  addr <- edl_as_s3(href)
  expect_match(addr, "^s3://")

 })

Try the earthdatalogin package in your browser

Any scripts or data that you put into this service are public.

earthdatalogin documentation built on May 29, 2024, 3:36 a.m.