tests/testthat/test-01_rdrop-auth.R

context("authorization")
test_that("Able to authenticate from saved RDS token", {
  skip_on_cran()

  # read cached token and check its class
  expect_is(drop_auth(rdstoken = "token.rds"), "Token2.0")
})


# drop_acc
# ......................................

context("Testing that acc info works correctly")

test_that("Account information works correctly", {
  skip_on_cran()

  acc_info <- drop_acc()
  # expect list
  expect_is(acc_info, "list")
  # name element should be its own list
  expect_is(acc_info$name, "list")
})

Try the rdrop2 package in your browser

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

rdrop2 documentation built on Aug. 5, 2020, 5:07 p.m.