tests/testthat/test-client.R

test_that("Specified connection works", {
  skip_if_offline()
  wfs <- create_biology_wfs()
  expect_s3_class(wfs, c("WFSClient", "OWSClient", "OGCAbstractObject", "R6"))
  expect_identical(wfs$getUrl(), "https://geo.vliz.be/geoserver/Emodnetbio/wfs")
})

test_that("Error when wrong service", {
  expect_snapshot_error(emodnet_init_wfs_client("blop"))
})
EMODnet/EMODnetWFS documentation built on June 14, 2025, 2:16 p.m.