Skip to content

Commit

Permalink
reduce forest country tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidree committed Nov 23, 2024
1 parent 43dae5a commit 30552e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.2.0
Date: 2024-11-22 10:58:06 UTC
SHA: 45836d91c48e355c88af29143ffee9e2ac6efb71
Date: 2024-11-22 20:20:45 UTC
SHA: 43dae5a06dee072501c209baefefebb945f9ad3b
11 changes: 2 additions & 9 deletions tests/testthat/test-forest-country.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ lugo_mfe <- fd_forest_spain_mfe50(
quiet = TRUE
)

## Get all files
forest_spain_list <- purrr::map(
metadata_forestdata$mfe_provinces,
fd_forest_spain_mfe50,
.progress = TRUE
)

## 1.2. Unit tests ------------------

## Check one file
Expand All @@ -25,11 +18,11 @@ test_that("Data is downloaded properly", {
})

## Check all files (~10min)
## Check only 15
## Check only 5
test_that("All files are downloaded", {
expect_no_error(
purrr::map(
metadata_forestdata$mfe_provinces[1:15],
metadata_forestdata$mfe_provinces[1:5],
fd_forest_spain_mfe50
)
)
Expand Down

0 comments on commit 30552e8

Please sign in to comment.