tests/testthat/test-02-get_test.R

with_mock_dir(
  "../api/test",
  test_that("get_test() works", {
    result <- get_test()

    # Is a list
    testthat::expect_type(result, "list")

    # Has "status" and "time" keys
    testthat::expect_true("status" %in% names(result))
    testthat::expect_true("time" %in% names(result))
  })
)

Try the consibiocloudclient package in your browser

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

consibiocloudclient documentation built on Sept. 12, 2024, 9:34 a.m.