tests/testthat/test-zzz-cache.R

test_that("Ollama cache exists and delete", {
  skip_if_no_ollama()
  expect_equal(
    length(fs::dir_ls(.mall_test$cache_ollama , recurse = TRUE)),
    59
  )
  fs::dir_delete(.mall_test$cache_ollama )
})

Try the mall package in your browser

Any scripts or data that you put into this service are public.

mall documentation built on Oct. 24, 2024, 5:09 p.m.