tests/testthat/test-deploy.R

test_that('deploy to temp dir', {
  dir.create(file.path(tempdir(), "test_insane"), showWarnings = FALSE)
  expect_true(deploy(directory = file.path(tempdir(), "test_insane")))
  expect_false(deploy(directory = file.path(tempdir(), "test_insane")))
  expect_false(deploy(directory = file.path(tempdir(), "test_insane"), demo = TRUE))
  expect_true(deploy(directory = file.path(tempdir(), "test_insane"), demo = TRUE, overwrite = TRUE))
})
mcanouil/insane documentation built on Jan. 2, 2025, 3:11 a.m.