Skip to content

Commit

Permalink
skip an httr test if xml2 not installed; delete a cassette file
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Aug 20, 2019
1 parent 0d12372 commit 43ddede
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-Cassette.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ test_that("Cassette fails well with unsupported matcher", {

# cleanup
unlink(file.path(vcr_configuration()$dir, "stuff.yml"))
unlink(file.path(vcr_configuration()$dir, "stuff2.yml"))
unlink(file.path(vcr_configuration()$dir, "foobar89.yml"))
2 changes: 2 additions & 0 deletions tests/testthat/test-RequestHandler.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ test_that("RequestHandlerHttr", {
})

test_that("RequestHandlerHttr: httr", {
skip_if_not_installed("xml2")

load("httr_obj.rda")
x <- RequestHandlerHttr$new(httr_obj)

Expand Down

0 comments on commit 43ddede

Please sign in to comment.