File: test-no-cassette-in-use.R

package info (click to toggle)
r-cran-vcr 0.2.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 596 kB
  • sloc: sh: 13; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 499 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
context("no_cassette_in_use")

# dir <- tempdir()
# invisible(vcr_configure(dir = dir))
#
# test_that("no cassette in use behaves as expected", {
#   crul::mock()
#   x <- crul::HttpClient$new(url = "https://httpbin.org")
#
#   # when no cassette in use, we get expected vcr error
#   expect_error(
#     x$get("get"),
#     "There is currently no cassette in use"
#   )
# })
#
# # cleanup
# unlink(file.path(vcr_configuration()$dir, "turtle.yml"))
#
# # reset configuration
# vcr_configure_reset()