Skip to content

Commit

Permalink
Skip DBItest tests if not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 11, 2023
1 parent e710fdf commit 67fd733
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/helper-DBItest.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ reg.finalizer(drv@database_ref, function(x) rapi_shutdown(x))
# Then, use DBItest::test_some() to see the DBI calls emitted by the tests
#
# This call must stay here, otherwise DBItest::test_some() doesn't work
DBItest::make_context(
if (rlang::is_installed("DBItest")) DBItest::make_context(
drv,
# dblog::dblog(drv),
list(debug = FALSE),
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-DBItest.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
skip_on_cran()

DBItest::test_all(c(
if (rlang::is_installed("DBItest")) DBItest::test_all(c(
"package_name", # wontfix
"package_dependencies", # wontfix
"reexport", # wontfix
Expand Down

0 comments on commit 67fd733

Please sign in to comment.