tests/testthat/test-get_gcae_required_python_packages.R

test_that("use", {
  expect_equal(1 + 1, 2) # Prevents testthat warning for empty test
  if (!plinkr::is_on_ci()) return()
  if (!is_gcae_script_fixed()) return()

  expect_silent(
    get_gcae_required_python_packages()
  )

  expect_true(
    tibble::is_tibble(
      get_gcae_required_python_packages()
    )
  )
})

test_that("need to clone the repo", {
  gcae_options <- create_gcae_options(gcae_folder = get_gcaer_tempfilename())
  expect_error(
    get_gcae_required_python_packages(gcae_options = gcae_options),
    "Tip: run 'gcaer::clone_gcae_repo"
  )
})
richelbilderbeek/gcaer documentation built on March 25, 2024, 3:08 p.m.