tests/testthat/test-argument-datacube.R

test_that("test parsing parameter description for subtype='datacube'",{
  json = list(
    name="data",
    description= "The data to deliver in the given file format.",
    schema= list(
      type= "object",
      subtype= "datacube"
    )
  )
  
  param = openeo:::parameterFromJson(json)
  expect_contains(class(param),"datacube")
})
Open-EO/openeo-r-client documentation built on Jan. 26, 2025, 9:28 a.m.