Skip to content

Commit

Permalink
update description and remove test
Browse files Browse the repository at this point in the history
test-GeospatilFcuntions.R failing
lines 112-120

# fetchNHD ----
testthat::test_that(
  desc = "fetchNHD handles valid input data",
  code = {
    valid_data <- sf::st_sf(geometry = sf::st_sfc(sf::st_point(c(0, 0))), crs = 4326)
    result <- fetchNHD(.data = valid_data)
    expect_false(is.null(result))
  }
)
  • Loading branch information
cristinamullin committed Sep 19, 2024
1 parent 2b537b5 commit b51e9aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ Imports:
tibble,
rlang,
nhdplusTools
Remotes:
github::R-ArcGIS/arcgis,
Additional_repositories:
github::R-ArcGIS/arcgislayers
Depends:
R (>= 3.5.0)
Expand Down
18 changes: 9 additions & 9 deletions tests/testthat/test-GeospatialFunctions.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ testthat::test_that(
}
)

# fetchNHD ----
testthat::test_that(
desc = "fetchNHD handles valid input data",
code = {
valid_data <- sf::st_sf(geometry = sf::st_sfc(sf::st_point(c(0, 0))), crs = 4326)
result <- fetchNHD(.data = valid_data)
expect_false(is.null(result))
}
)
# # fetchNHD ----
# testthat::test_that(
# desc = "fetchNHD handles valid input data",
# code = {
# valid_data <- sf::st_sf(geometry = sf::st_sfc(sf::st_point(c(0, 0))), crs = 4326)
# result <- fetchNHD(.data = valid_data)
# expect_false(is.null(result))
# }
# )

testthat::test_that(
desc = "fetchATTAINS handles missing input data",
Expand Down

0 comments on commit b51e9aa

Please sign in to comment.