Skip to content

Commit 02bc9f9

Browse files
committed
Correct test
The first argument of the function must be a template.
1 parent 328308e commit 02bc9f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test-downloaders.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ if (Sys.info()["sysname"] == "Linux") {
88
test_that("it should download a file with a datetime downloader", {
99
tpl <- template_retrieve("COTAHIST_DAILY")
1010
dest <- tempfile()
11-
expect_false(tpl$download_marketdata(dest))
11+
expect_false(tpl$download_marketdata(tpl, dest))
1212
expect_false(file.exists(dest))
1313
skip_on_os("linux")
1414
date <- getdate("last bizday", Sys.Date(), "Brazil/ANBIMA")
15-
x <- tpl$download_marketdata(dest, refdate = date)
15+
x <- tpl$download_marketdata(tpl, dest, refdate = date)
1616
expect_true(x)
1717
expect_true(file.exists(dest))
1818
})

0 commit comments

Comments
 (0)