Skip to content

Commit

Permalink
Fix snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirlich committed May 2, 2024
1 parent 01ae82a commit 07b68f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions tests/testthat/_snaps/tbl-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@
# check_from is deprecated

Code
tbl(con, "x", check_from = FALSE)
out <- tbl(con, "x", check_from = FALSE)
Condition
Warning:
The `check_from` argument of `tbl_sql()` is deprecated as of dbplyr 2.5.0.
Output
# Source: table<`x`> [0 x 1]
# Database: sqlite 3.45.0 [:memory:]
# i 1 variable: y <lgl>

2 changes: 1 addition & 1 deletion tests/testthat/test-tbl-sql.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test_that("check_from is deprecated", {
con <- local_sqlite_connection()
DBI::dbExecute(con, "CREATE TABLE x (y)")

expect_snapshot(tbl(con, "x", check_from = FALSE))
expect_snapshot(out <- tbl(con, "x", check_from = FALSE))
})

# n_groups ----------------------------------------------------------------
Expand Down

0 comments on commit 07b68f6

Please sign in to comment.