Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Oct 6, 2023
1 parent 5353eb2 commit 1a505f2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/testthat/test-dbConnect.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
test_that("Connecting with mysql = FALSE", {
con <- mariadbDefault()
on.exit(dbDisconnect(con))

expect_s4_class(con, "MariaDBConnection")
expect(!is(con, "MySQLConnection"))
})

test_that("Connecting with mysql = TRUE", {
con <- mysqlDefault()
on.exit(dbDisconnect(con))

expect_s4_class(con, "MariaDBConnection")
expect_s4_class(con, "MySQLConnection")
})

0 comments on commit 1a505f2

Please sign in to comment.