Skip to content

Commit

Permalink
adapt test download osm
Browse files Browse the repository at this point in the history
  • Loading branch information
ptimoner committed Sep 24, 2024
1 parent f12c0e9 commit db910fb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tests/testthat/test-07-download_osm.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
test_that("test download_osm", {
expect_equal(download_osm(x = "roads", mainPath = temp_dir, country = country, alwaysDownload = TRUE,
countryName = TRUE,
expect_equal(download_osm(mainPath = temp_dir, location = country, type = "roads", alwaysDownload = TRUE,
mostRecent = TRUE,
defaultClasses = TRUE), TRUE)
expect_equal(download_osm(x = "waterLines", mainPath = temp_dir, country = country, alwaysDownload = TRUE,
countryName = TRUE,
expect_equal(download_osm(mainPath = temp_dir, location = country, type = "waterLines", alwaysDownload = TRUE,
mostRecent = TRUE,
defaultClasses = TRUE), TRUE)
expect_equal(download_osm(x = "naturalPolygons", mainPath = temp_dir, country = country, alwaysDownload = TRUE,
countryName = TRUE,
expect_equal(download_osm(mainPath = temp_dir, country = country, type = "waterPolygons", alwaysDownload = TRUE,
mostRecent = TRUE,
defaultClasses = TRUE), TRUE)
})
Expand Down

0 comments on commit db910fb

Please sign in to comment.