Skip to content

Commit

Permalink
test(id): re-added test for id on DBIConnections
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Munch Grünewald authored and Marcus Munch Grünewald committed Nov 23, 2023
1 parent da2888b commit 93c9655
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ test_that("id() works", { for (conn in conns) { # nolint: brace_linter
expect_identical(id("test_mtcars"), DBI::Id(table = "test_mtcars"))
expect_identical(id("test.mtcars"), DBI::Id(schema = "test", table = "mtcars"))

expect_identical(id("test.mtcars", conn = conn, allow_table_only = FALSE),
DBI::Id(schema = "test", table = "mtcars"))
}})

test_that('id() returns table = "schema.table" if schema does not exist', {
Expand Down

0 comments on commit 93c9655

Please sign in to comment.