tests/testthat/setup-rtoot.R

library("vcr") # *Required* as vcr is set up on loading
invisible(
  vcr::vcr_configure(
         filter_sensitive_data = list("<<<MASTODON TOKEN>>>" = get_token_from_envvar("RTOOT_DEFAULT_TOKEN", check_stop = FALSE)$bearer,
                                      "<<<INSTANCES.SOCIAL TOKEN>>>" = Sys.getenv("RTOOT_INSTANCES_SOCIAL_TOKEN")),
         dir = vcr::vcr_test_path("fixtures")
       ))
vcr::check_cassette_names()

Try the rtoot package in your browser

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

rtoot documentation built on May 29, 2024, 2:14 a.m.