tests/testthat/test-gitlab.R

test_that("GitLab works", {
  expect_type(set.gitlab.connection(), "closure")
  project <- "30946364"
  files <- list.gitlab.project.files(project)
  expect_snapshot(files)
  expect_snapshot(names(files))
  blobs <- files[tools::file_ext(files$name) == "R", ] %>%
    head() %>%
    get.gitlab.blobs(project)
  expect_snapshot(names(blobs))
})
royratcliffe/canny.tudor documentation built on Oct. 17, 2022, 4:17 a.m.