tests/testthat/test_hydrometric.R

test_that("eccc_hydro_stns return a tibble with 10 columns", {

  skip_if_net_down()

  stns <- eccc_hydro_stns(
    query = list(
      "STATUS_EN" = "ACTIVE",
      "PROV_TERR_STATE_LOC" = "MB")
    )

  expect_type(stns, "list")

  expect(
    ncol(stns) == 10,
    failure_message = "Hydrometric metadata columns incorrect."
    )

})
rywhale/ecccgeometR documentation built on Dec. 22, 2021, 8:19 p.m.