tests/testthat/test-get-info.R

context("Get App. Info.")

test_that("get_info happens successfully", {
  skip_on_cran()

  secret_id_file <- file("clarifai_secret_id", "r")
  secret_id_dat  <- suppressWarnings(readLines(secret_id_file))
  secret_id(unlist(strsplit(secret_id_dat, ",")))
  close(secret_id_file)

  get_token()
  get_info <- get_info()
  expect_that(get_info, is_a("list"))
})
soodoku/clarifai documentation built on May 30, 2019, 6:28 a.m.