tests/testthat/test_ExtractorYtbid.R

testthat::context("ExtractorYtbid")

testthat::setup({
  bdpar.Options$reset()
  bdpar.Options$configureLog()
})

testthat::test_that("initialize path type error",{
  testthat::skip_if_not_installed("tuber")
  testthat::skip_if_not_installed("rjson")
  path <- NULL

  testthat::expect_error(ExtractorYtbid$new(path),
                         "[ExtractorYtbid][initialize][FATAL] Checking the type of the 'path' variable: NULL",
                         fixed = TRUE)
})

testthat::teardown({
  bdpar.Options$reset()
  bdpar.Options$configureLog()
})

Try the bdpar package in your browser

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

bdpar documentation built on Aug. 22, 2022, 5:08 p.m.