tests/testthat/test-get-info.R

context("Get App Info.")

test_that("getAppInfo happens successfully", {

  skip_on_cran()

  token_file <- file("abbyy_key", "r")
  token <- suppressWarnings(readLines(token_file))
  close(token_file)
  setapp(unlist(strsplit(token, ",")))

  get_info <- getAppInfo()
  expect_that(get_info, is_a("data.frame"))
})
soodoku/abbyyR documentation built on July 19, 2023, 8:36 a.m.