We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 328308e commit 02bc9f9Copy full SHA for 02bc9f9
tests/testthat/test-downloaders.R
@@ -8,11 +8,11 @@ if (Sys.info()["sysname"] == "Linux") {
8
test_that("it should download a file with a datetime downloader", {
9
tpl <- template_retrieve("COTAHIST_DAILY")
10
dest <- tempfile()
11
- expect_false(tpl$download_marketdata(dest))
+ expect_false(tpl$download_marketdata(tpl, dest))
12
expect_false(file.exists(dest))
13
skip_on_os("linux")
14
date <- getdate("last bizday", Sys.Date(), "Brazil/ANBIMA")
15
- x <- tpl$download_marketdata(dest, refdate = date)
+ x <- tpl$download_marketdata(tpl, dest, refdate = date)
16
expect_true(x)
17
expect_true(file.exists(dest))
18
})
0 commit comments