tests/testthat/test-information.R

context("Information functions")

test_that("Test information functions errors", {
  
  expect_error(ghc_repos_get_github_information(prefix = "test"), "organization required")
  expect_error(ghc_repos_get_github_information(org = "test"), "assignment prefix required")
  expect_error(ghc_repos_get_github_information("test", "test"), "access token required")
  expect_error(ghc_repos_get_github_information("test", "test", token = "DNE"), "invalid access token")
  
})
KopfLab/ghctools documentation built on Feb. 20, 2023, 9:25 a.m.