tests/testthat/test_create_reservation.R

context("Create reservation")

testthat::test_that("create_reservation() works", {
  vcr::use_cassette("create_reservation", {
    identifier <- create_reservation("edi", "staging")
  })
  expect_type(identifier, "double")
  vcr::use_cassette("create_reservation_delete_reservation", {
    res <- delete_reservation("edi", identifier, env = "staging")
  })
  expect_type(res, "double")
})
ropensci/EDIutils documentation built on Oct. 19, 2023, 7:21 p.m.