tests/testthat/test-get_yaml.R

test_that("get_yaml works", {
  if(!is_gha()) testthat::skip_if_offline()
  
  testthat::expect_type(
    rworkflows:::get_yaml(template = "rworkflows"),
    "list"
  )
  testthat::expect_type(
    rworkflows:::get_yaml(template = "rworkflows_static"),
    "list"
  )
  testthat::expect_error(
    rworkflows:::get_yaml(template = "TYPOOOOO")
  )
})

Try the rworkflows package in your browser

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

rworkflows documentation built on May 29, 2024, 2:37 a.m.