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)
  }
})

Try the EDIutils package in your browser

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

EDIutils documentation built on Oct. 11, 2023, 1:08 a.m.