From e09b99365bdec1df456a4802b2daf689959ab98e Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Tue, 10 Oct 2023 16:34:21 -0700 Subject: [PATCH] Optionally skip tests requiring RSQLite --- tests/testthat/test-db.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testthat/test-db.R b/tests/testthat/test-db.R index a9da35e5..73666cc6 100644 --- a/tests/testthat/test-db.R +++ b/tests/testthat/test-db.R @@ -1,4 +1,5 @@ describe("with_db_connection", { + skip_if_not_installed("RSQLite") #it("errors if connection is not named", { #expect_error({ #with_db_connection(list(TRUE), TRUE) @@ -53,6 +54,7 @@ describe("with_db_connection", { }) describe("local_db_connection", { + skip_if_not_installed("RSQLite") it("creates a single connection", { db <- tempfile() on.exit(unlink(db))