tests/testthat/test-get-usage.R

context("Get Usage Info.")

test_that("get_usage 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_usage <- get_usage()
  expect_that(get_usage, is_a("list"))
})

Try the clarifai package in your browser

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

clarifai documentation built on May 29, 2017, 3:59 p.m.