Skip to content

Commit

Permalink
remove mocking that I'd missed earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Feb 5, 2025
1 parent a5dbae6 commit d075596
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
},
"SystemRequirements": null
},
"fileSize": "388.395KB",
"fileSize": "388.484KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
16 changes: 7 additions & 9 deletions tests/testthat/test-read_abares_trade.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,13 @@ test_that("read_abares_trade doesn't cache", {
})

# with caching ----
with_mock_dir("abares/trade", {
test_that("read_abares_trade caches", {
skip_if_offline()
skip_on_ci()
read_abares_trade(cache = TRUE)
expect_true(file.exists(
file.path(.find_user_cache(), "abares_trade_dir/abares_trade.gz")
))
})
test_that("read_abares_trade caches", {
skip_if_offline()
skip_on_ci()
read_abares_trade(cache = TRUE)
expect_true(file.exists(
file.path(.find_user_cache(), "abares_trade_dir/abares_trade.gz")
))
})

# cleanup cache if rerunning tests in same R session so first test passes ----
Expand Down

0 comments on commit d075596

Please sign in to comment.