Skip to content

Commit 0ff8875

Browse files
authored
Merge pull request #161 from bluegreen-labs/patch-file-format
adding test for renaming routine
2 parents b80dd33 + ee7becb commit 0ff8875

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

tests/testthat/test_ds.R

+21-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ if(server_check & ON_GIT){
7171
# } else{
7272
# login_check <- TRUE
7373
# }
74-
7574
}
7675

7776
#----- formal checks ----
@@ -222,6 +221,27 @@ test_that("required arguments missing for cds_* functions", {
222221
simplify = FALSE)))
223222
})
224223

224+
test_that("rename output routine", {
225+
skip_on_cran()
226+
skip_if(login_check)
227+
228+
request <- list(
229+
dataset_short_name = "reanalysis-era5-single-levels-monthly-means",
230+
product_type = "monthly_averaged_reanalysis",
231+
variable = c("2m_temperature"),
232+
year = c("2020","2018"),
233+
month = c("01", "02"),
234+
time = "00:00",
235+
data_format = "netcdf",
236+
grid = c("1", "1"),
237+
download_format = "unarchived"
238+
)
239+
240+
expect_output(
241+
wf_request(request)
242+
)
243+
})
244+
225245
test_that("batch request tests", {
226246
skip_on_cran()
227247
skip_if(login_check)

0 commit comments

Comments
 (0)