tests/testthat/test_list_working_on.R

context("List data packages the EDI repository is working on")

testthat::test_that("list_working_on() works", {
  vcr::use_cassette("list_working_on", {
    res <- list_working_on(as = "xml", "staging")
  })
  children <- xml2::xml_name(xml2::xml_children(res))
  expect_true(all(class(res) %in% c("xml_document", "xml_node")))
  if (length(children) != 0) {
    expect_true("dataPackage" %in% children)
  }
})
ropensci/EDIutils documentation built on Oct. 19, 2023, 7:21 p.m.